File modules/pc/protocol_config.h

  $Revision: 1.7 $

Protocol config module (pc). This is the protocol that the admin uses to talk to the server.
Status: NOT REVUED, NOT TESTED
Online References:

Included in: modules/pc/protocol_config.c

Preprocessor definitions

#define READ_PROTOCOL_CONFIG

String sizes

#define STR_S 63

#define STR_M 255

#define STR_L 1023

#define STR_XL 4095

#define STR_XXL 16383

#define DEFAULT_USER_NAME "user"

Log message

#define LOG_CONFIG "[%d] %s %s %s\n"

Maximum size of input that can be recieved from the client.

#define MAX_INPUT_SIZE 1024

This login propmt is sent to the user.

#define LOGIN_PROMPT "\nlogin: "

This password propmt is sent to the user.

#define PASSWD_PROMPT "password: "

#define ECHO_ON "\033[33;43m"

#define ECHO_OFF "\033[0m"

#define CLEAR_SCREEN "\033[2J"

This welcome message is sent to the user, upon connecting.

#define HELP_ERROR "Invalid help command: "

#define HELP_HELP "Print help information."

#define HELP_QUIT "Quit the server."

#define HELP_SHOW "Show the values of: (type show for a list)"

#define HELP_REPEAT "Repeat a command n times."

#define HELP_SHOW_ERROR "Invalid show command: "

#define HELP_SHOW_CONST "The values of a constant used in the server."

#define HELP_SHOW_CONSTS "The values of constants used in the server.\n(This is set from values in properties object.)"

#define HELP_SHOW_PROPS "The values of properties in the properties file."

#define HELP_SHOW_THREAD "The properties of the client's thread."

#define HELP_SHOW_WHOIS "The values of the whois query module."

#define HELP_SHOW_ACCESS "The access to server."

#define HELP_SHOW_ACL "The access control list for server."

#define HELP_SET "Set the values of: (type set for a list)"

#define HELP_SET_ERROR "Invalid set command: "

#define HELP_SET_CONST "Set the values of a constants: (type set const name=value)"

#define HELP_SET_CONSTS "Set the values of constants used in the server.\n(This is set from values in properties object.)"

#define HELP_SET_PROPS "Set the values of properties in the properties file."

#define HELP_SET_BAN

#define HELP_SQL "Issue an sql command to the database."