File modules/pc/protocol_config.c

  $Revision: 1.29 $

Protocol config module (pc). This is the protocol that the admin uses to talk to the server.
Status: NOT REVUED, NOT TESTED
References Functions: command_help()modules/pc/protocol_config.c
  command_purify()modules/pc/pc_commands.c
  command_quit()modules/pc/pc_commands.c
  command_set()modules/pc/pc_commands.c
  command_show()modules/pc/pc_commands.c
  command_stop()modules/pc/pc_commands.c
  set_acl()modules/pc/pc_commands.c
  set_err()modules/pc/pc_commands.c
  set_macro()modules/pc/pc_commands.c
  set_nodeny()modules/pc/pc_commands.c
  set_updates()modules/pc/pc_commands.c
  show_access()modules/pc/pc_commands.c
  show_acl()modules/pc/pc_commands.c
  show_const()modules/pc/pc_commands.c
  show_consts()modules/pc/pc_commands.c
  show_err()modules/pc/pc_commands.c
  show_macros()modules/pc/pc_commands.c
  show_props()modules/pc/pc_commands.c
  show_threads()modules/pc/pc_commands.c
  show_whois()modules/pc/pc_commands.c
  stop_query()modules/pc/pc_commands.c

Included Files


Preprocessor definitions

#define PC_IMPL

Global Variable command

* Contains the command definitions

struct _command command[]
Included from modules/pc/protocol_config.h
Visible in:  modules/pc/pc_commands.c
   modules/pc/protocol_config.c
Used in: command_help()modules/pc/protocol_config.c
  process_input()modules/pc/protocol_config.c


Global Variable show

* Contains the show commands

struct _command show[]
Included from modules/pc/protocol_config.h
Visible in:  modules/pc/pc_commands.c
   modules/pc/protocol_config.c
Used in: command_show()modules/pc/pc_commands.c


Global Variable set

* Contains the set commands

struct _command set[]
Included from modules/pc/protocol_config.h
Visible in:  modules/pc/pc_commands.c
   modules/pc/protocol_config.c
Used in: command_set()modules/pc/pc_commands.c


Global Variable stop

struct _command stop[]
Included from modules/pc/protocol_config.h
Visible in:  modules/pc/pc_commands.c
   modules/pc/protocol_config.c
Used in: command_stop()modules/pc/pc_commands.c

External Variables

SV_starttime
extern time_t SV_starttime

Global Function PC_interact()

void PC_interact ( int sock )
Prototyped in: modules/pc/protocol_config.h
Calls: CO_get_authenticate()modules/co/constants.c
  CO_get_prompt()modules/co/constants.c
  CO_get_welcome()modules/co/constants.c
  ER_inf_va()modules/er/er.c
  authenticate_user()modules/pc/protocol_config.c
  process_input()modules/pc/protocol_config.c
  SK_cd_gets(), SK_cd_printf(), SK_cd_puts(), SK_close(), SK_getpeerip(), SK_getpeername(), TA_increment(), TA_setactivity(), ctime_r(), fprintf(), free(), memset(), strdup(), strlen(), time(), wr_real_free()
References Variables: SV_starttime

Global Function command_execute()

int command_execute ( Command* comm, char* comm_name, char* input, GString* output, sk_conn_st* condat )
Prototyped in: modules/pc/protocol_config.h
Calls: find_command()modules/pc/protocol_config.c
  show_commands()modules/pc/protocol_config.c
  fprintf(), free(), g_string_sprintfa(), strlen(), strtok_r(), wr_string()
Called by: command_set()modules/pc/pc_commands.c
  command_show()modules/pc/pc_commands.c
  command_stop()modules/pc/pc_commands.c
  process_input()modules/pc/protocol_config.c

Local Function authenticate_user()

static char* authenticate_user ( sk_conn_st* condat )
Calls: PR_get_property(), SK_cd_gets(), SK_cd_puts(), crypt(), fprintf(), strcmp(), strcpy(), strlen(), strncpy(), wr_real_malloc()
Called by: PC_interact()modules/pc/protocol_config.c

Local Function command_help()

static int command_help ( char* input, GString* output, sk_conn_st* condat )
Prototyped in: modules/pc/pc_commands.h
Calls: show_commands()modules/pc/protocol_config.c
Called by: process_input()modules/pc/protocol_config.c
Used in:  modules/pc/protocol_config.c
References Variables: commandmodules/pc/protocol_config.c

Local Function find_command()

static int find_command ( char* comm_name, Command* comm )
Calls: strcmp(), strtok_r(), wr_real_free(), wr_string()
Called by: command_execute()modules/pc/protocol_config.c
  process_input()modules/pc/protocol_config.c

Local Function process_input()

  Process the input.

More:
  Author:
        ottrey
static int process_input ( char* input, sk_conn_st* condat )
char* input
&nbs;
sk_conn_st* condat
connection data
Calls: CO_get_clear_screen()modules/co/constants.c
  CO_get_prompt()modules/co/constants.c
  command_execute()modules/pc/protocol_config.c
  command_help()modules/pc/protocol_config.c
  find_command()modules/pc/protocol_config.c
  SK_cd_printf(), SK_cd_puts(), g_string_free(), g_string_new()
Called by: PC_interact()modules/pc/protocol_config.c
References Variables: commandmodules/pc/protocol_config.c

Local Function show_commands()

static int show_commands ( Command* comm, char* comm_name, GString* output )
Calls: g_string_sprintfa()
Called by: command_execute()modules/pc/protocol_config.c
  command_help()modules/pc/protocol_config.c