$Revision: 1.53 $
Protocol whois module (pw). Whois protocol.
Status: NOT REVUED, TESTED
void
display_file opens a file and displays its contents to the
connection described in conn. structure.
sk_conn_st *condat pointer to connection structure
char *filename file name
Used in: | PW_interact() |
PW_stopqueries() |
queries_lock
static rw_lock_t queries_lock
Used in: | PW_interact() |
PW_startqueries() | |
PW_stopqueries() | |
init_stopqueries() |
void PW_interact Main loop for interaction with a single client. The function sets up the accounting for the client, invokes parsing, execution, logging and accounting of the query.void PW_interact ( int sock )
void PW_process_qc processes the query commands determined in QC, This is where all the real action of the query part is invoked.void PW_process_qc ( Query_environ* qe, Query_command* qc, acc_st* acc_credit, acl_st* acl_eip )
Calls: | AC_credit_isdenied() | modules/ac/access_control.c |
DF_get_class_template() | modules/df/defs.c | |
DF_get_class_template_v() | modules/df/defs.c | |
NOERR() | modules/er/er.c | |
PM_get_nrtm_sources() | modules/pm/pm_serials.c | |
ca_get_dirlist() | modules/ca/ca_configFns.c | |
ca_get_string() | modules/ca/ca_configFns.c | |
display_file() | modules/pw/protocol_whois.c | |
QI_execute(), QI_free(), QI_new(), SK_cd_puts(), fprintf(), g_list_first(), g_string_free(), wr_real_free() | ||
Called by: | PW_interact() | modules/pw/protocol_whois.c |
Prototyped in: | modules/pw/protocol_whois.h | |
Calls: | TH_release_write_lockw() | |
Called by: | set_queries() | modules/pc/pc_commands.c |
References Variables: | queries_lock | modules/pw/protocol_whois.c |
Prototyped in: | modules/pw/protocol_whois.h | |
Calls: | TH_acquire_write_lockw(), pthread_once() | |
Called by: | set_queries() | modules/pc/pc_commands.c |
References Functions: | init_stopqueries() | modules/pw/protocol_whois.c |
References Variables: | init_queries_lock_once | modules/pw/protocol_whois.c |
queries_lock | modules/pw/protocol_whois.c |
void display_file opens a file and displays its contents to the connection described in conn. structure.static void display_file ( sk_conn_st* condat, char* filename )
Calls: | ER_perror() | modules/er/er.c |
SK_cd_puts(), fclose(), fopen(), fread(), strerror() | ||
Called by: | PW_process_qc() | modules/pw/protocol_whois.c |
Calls: | TH_init_read_write_lockw() | |
Used in: | PW_interact() | modules/pw/protocol_whois.c |
PW_stopqueries() | modules/pw/protocol_whois.c | |
References Variables: | queries_lock | modules/pw/protocol_whois.c |
static void pw_log_query logs the query to a file after it has finished. Takes many parameters to have access to as much information as possible, including the original query, accounting, response time, status of the client connection, etc.static void pw_log_query ( Query_environ* qe, Query_command* qc, acc_st* copy_credit, ut_timer_t begintime, ut_timer_t endtime, char* hostaddress, char* input )
Calls: | AC_credit_to_string() | modules/ac/access_control.c |
ER_inf_va() | modules/er/er.c | |
QC_get_qrytype(), UT_timediff(), wr_real_free() | ||
Called by: | PW_interact() | modules/pw/protocol_whois.c |