#include "squid.h"

Go to the source code of this file.
Classes | |
struct | _thing |
Macros | |
#define | CHANGE_FD_SETSIZE 1 |
#define | READ_BUF_SZ 4096 |
#define | URL_BUF_SZ 4096 |
Typedefs | |
typedef struct _thing | thing |
Functions | |
int | tvSubMsec (struct timeval t1, struct timeval t2) |
static int | get_url (const char *url) |
static void | child_main_loop (void) |
static thing * | create_a_thing (char *argv[]) |
static void | create_children (char *argv[]) |
char * | parent_read_url (void) |
static thing * | get_idle_thing (void) |
static void | dispatch (thing *t, char *url) |
static void | read_reply (thing *t) |
static void | parent_main_loop (void) |
static void | sig_child (int sig) |
int | main (int argc, char *argv[]) |
Variables | |
static thing * | things = NULL |
static fd_set | R1 |
static int | maxfd = 0 |
static struct timeval | now |
static int | debug = 0 |
Macro Definition Documentation
◆ CHANGE_FD_SETSIZE
#define CHANGE_FD_SETSIZE 1 |
Definition at line 17 of file tcp-banger3.c.
◆ READ_BUF_SZ
#define READ_BUF_SZ 4096 |
Definition at line 85 of file tcp-banger3.c.
◆ URL_BUF_SZ
#define URL_BUF_SZ 4096 |
Definition at line 86 of file tcp-banger3.c.
Typedef Documentation
◆ thing
Definition at line 1 of file tcp-banger3.c.
Function Documentation
◆ child_main_loop()
|
static |
Definition at line 182 of file tcp-banger3.c.
References debug, get_url(), NULL, tvSubMsec(), and URL_BUF_SZ.
Referenced by create_a_thing().
◆ create_a_thing()
|
static |
Definition at line 209 of file tcp-banger3.c.
References child_main_loop(), maxfd, pid, _thing::pid, _thing::rfd, and _thing::wfd.
Referenced by create_children().
◆ create_children()
|
static |
Definition at line 252 of file tcp-banger3.c.
References assert, create_a_thing(), debug, _thing::next, _thing::rfd, things, and _thing::wfd.
Referenced by main().
◆ dispatch()
|
static |
Definition at line 294 of file tcp-banger3.c.
References assert, debug, _thing::pid, R1, _thing::rfd, _thing::state, _thing::url, URL_BUF_SZ, and _thing::wfd.
Referenced by parent_main_loop().
◆ get_idle_thing()
|
static |
Definition at line 281 of file tcp-banger3.c.
References _thing::next, _thing::state, and things.
Referenced by parent_main_loop().
◆ get_url()
|
static |
Definition at line 115 of file tcp-banger3.c.
References assert, debug, gethostbyname(), hostent::h_addr_list, inet_ntop, port, READ_BUF_SZ, request(), and URL_BUF_SZ.
Referenced by child_main_loop().
◆ main()
Definition at line 373 of file tcp-banger3.c.
References create_children(), maxfd, parent_main_loop(), and sig_child().
◆ parent_main_loop()
|
static |
Definition at line 330 of file tcp-banger3.c.
References dispatch(), get_idle_thing(), maxfd, _thing::next, NULL, parent_read_url(), R1, read_reply(), _thing::rfd, _thing::state, and things.
Referenced by main().
◆ parent_read_url()
char* parent_read_url | ( | void | ) |
Definition at line 269 of file tcp-banger3.c.
References NULL, and URL_BUF_SZ.
Referenced by parent_main_loop().
◆ read_reply()
|
static |
Definition at line 312 of file tcp-banger3.c.
References now, NULL, R1, _thing::rfd, _thing::state, and _thing::url.
Referenced by parent_main_loop().
◆ sig_child()
|
static |
◆ tvSubMsec()
int tvSubMsec | ( | struct timeval | A, |
struct timeval | B | ||
) |
timeval subtraction operation.
- Returns
- (A-B) in whole milliseconds XXX: result is not compatible with time_msec_t millisecond storage
Definition at line 109 of file tcp-banger3.c.
Referenced by child_main_loop().
Variable Documentation
◆ debug
|
static |
Definition at line 105 of file tcp-banger3.c.
Referenced by build_groups_DN_array(), checkLDAP(), child_main_loop(), Adaptation::Ecap::Host::closeDebug(), copy_out(), create_children(), decode_pub_auth(), dict_lookup(), dispatch(), Get_primaryGroup(), get_url(), GetDomainName(), getpassword(), init_challenge(), ldapconnect(), load_dict(), local_printfx(), main(), MainSafe(), make_challenge(), make_pub_auth(), manage_request(), match_group(), My_NameTranslate(), ntlm_check_auth(), ntlm_fetch_string(), ntlm_unpack_auth(), ntlm_validate_packet(), obtain_challenge(), password_conversation(), process_options(), process_request(), read_request(), readConfigFile(), Recursive_Memberof(), regex_compile(), result_recv(), SearchIPLDAP(), searchLDAP(), searchLDAPGroup(), SigTrap(), Valid_Global_Groups(), Valid_Local_Groups(), Valid_User(), wccmparray(), and wcstrcmparray().
◆ maxfd
|
static |
Definition at line 100 of file tcp-banger3.c.
Referenced by create_a_thing(), main(), and parent_main_loop().
◆ now
|
static |
Definition at line 100 of file tcp-banger3.c.
Referenced by read_reply().
◆ R1
|
static |
Definition at line 99 of file tcp-banger3.c.
Referenced by dispatch(), parent_main_loop(), and read_reply().
◆ things
Definition at line 98 of file tcp-banger3.c.
Referenced by create_children(), get_idle_thing(), and parent_main_loop().