$Revision: 1.50 $
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
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 )| Prototyped in: | modules/pw/protocol_whois.h | |
| Calls: | AC_acc_addup() | modules/ac/access_control.c |
| AC_check_acl() | modules/ac/access_control.c | |
| AC_commit() | modules/ac/access_control.c | |
| AC_credit_isdenied() | modules/ac/access_control.c | |
| CO_get_whois_suspended() | modules/co/constants.c | |
| ER_dbg_va() | modules/er/er.c | |
| ER_inf_va() | modules/er/er.c | |
| PW_process_qc() | modules/pw/protocol_whois.c | |
| ca_get_int() | modules/ca/ca_configFns.c | |
| ca_get_string() | modules/ca/ca_configFns.c | |
| pw_log_query() | modules/pw/protocol_whois.c | |
| QC_create(), QC_environ_free(), QC_environ_new(), QC_free(), SK_cd_free(), SK_cd_gets(), SK_cd_make(), SK_cd_puts(), SK_getpeername(), TA_increment(), TA_setactivity(), TA_setcondat(), UT_timeget(), memcmp(), memset(), ut_string_chop(), wr_real_free() | ||
| Called by: | show_whois() | modules/pc/pc_commands.c |
| References Variables: | IP_ADDR_UNSPEC | modules/ip/ip.c |
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 |
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 |
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 |