## include/protocol_config.h

/* [<][>][^][v][top][bottom][index][help] */

## FUNCTIONS

This source file includes following functions.

       1 #ifndef READ_PROTOCOL_CONFIG
       2 #define READ_PROTOCOL_CONFIG
       3
       4 /***************************************
       5   $Revision: 1.8 $
       6
       7   Protocol config module (pc).  This is the protocol that the admin uses to
       8   talk to the server.
       9
      10   Status: NOT REVUED, NOT TESTED
      11
      12   +html+ <DL COMPACT>
      13   +html+ <DT>Online References:
      14   +html+ <DD><UL>
      15   +html+   <LI><A HREF="../src/Protocol.c">Source Code</A>
      16   +html+ </UL>
      17   +html+ </DL>
      18   +html+ <PRE>
      19   +html+ </PRE>
      20
      21   ******************/ /******************
      22   Copyright (c) 1999                              RIPE NCC
      23
      24   All Rights Reserved
      25
      26   Permission to use, copy, modify, and distribute this software and its
      27   documentation for any purpose and without fee is hereby granted,
      28   provided that the above copyright notice appear in all copies and that
      29   both that copyright notice and this permission notice appear in
      30   supporting documentation, and that the name of the author not be
      31   used in advertising or publicity pertaining to distribution of the
      32   software without specific, written prior permission.
      33
      34   THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
      35   ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS; IN NO EVENT SHALL
      36   AUTHOR BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY
      37   DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
      38   AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
      39   OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
      40   ***************************************/
      41
      42 /*+ String sizes +*/
      43 #define STR_S   63
      44 #define STR_M   255
      45 #define STR_L   1023
      46 #define STR_XL  4095
      47 #define STR_XXL 16383
      48
      49 #define DEFAULT_USER_NAME "user"
      50
      51 /*+ Log message +*/
      52 #define LOG_CONFIG "[%d] %s %s %s\n"
      53
      54 /*+ Maximum size of input that can be recieved from the client. +*/
      55 #define MAX_INPUT_SIZE  1024
      56
      57 /*+ This propmt is sent to the user. +*/
      58 /*
      59 #define PROMPT  "\nwhois R.I.P. config> "
      60 #define PROMPT  "\nwhois \033[0;1;33;40mR.I.P.\033[0m config> "
      61 */
      62
      63 /*+ This login propmt is sent to the user. +*/
      64 #define LOGIN_PROMPT  "\nlogin: "
      65
      66 /*+ This password propmt is sent to the user. +*/
      67 #define PASSWD_PROMPT  "password: "
      68
      69 /* XXX Why doesn't invisible work ???!?!?!
      70
      71 http://www.dee.ufpb.br/~bob/tools/ansi.html
      72 http://cs.wwc.edu/~bellmi/ANSI_escape_codes.html
      73
      74 #define ECHO_ON "\033[8m"
      75 */
      76
      77 /* Use reverse video instead - grrr. */
      78 #define ECHO_ON "\033[33;43m"
      79
      80 #define ECHO_OFF "\033[0m"
      81
      82 #define CLEAR_SCREEN "\033[2J"
      83
      84 /*+ This welcome message is sent to the user, upon connecting. +*/
      85 /*
      86 #define WELCOME  "Welcome to the whois R.I.P. server.\n"
      87 */
      88
      89 #define HELP_ERROR        "Invalid help command: "
      90 #define HELP_HELP         "Print help information."
      91 #define HELP_QUIT         "Quit the server."
      92 #define HELP_SHOW         "Show the values of: (type show for a list)"
      93 #define HELP_REPEAT       "Repeat a command n times."
      94 #define HELP_SHOW_ERROR   "Invalid show command: "
      95 #define HELP_SHOW_CONST   "The values of a constant used in the server."
      96 #define HELP_SHOW_CONSTS  "The values of constants used in the server.\n(This is set from values in properties object.)"
      97 #define HELP_SHOW_PROPS   "The values of properties in the properties file."
      98 #define HELP_SHOW_THREAD  "The properties of the client's thread."
      99 #define HELP_SHOW_WHOIS   "The values of the whois query module."
     100 #define HELP_SHOW_ACCESS  "The access to server."
     101 #define HELP_SHOW_ACL     "The access control list for server."
     102 #define HELP_SET          "Set the values of: (type set for a list)"
     103 #define HELP_SET_ERROR    "Invalid set command: "
     104 #define HELP_SET_CONST    "Set the values of a constants: (type set const name=value)"
     105 #define HELP_SET_CONSTS   "Set the values of constants used in the server.\n(This is set from values in properties object.)"
     106 #define HELP_SET_PROPS    "Set the values of properties in the properties file."
     107 #define HELP_SET_ACL      "Create/modify acl entries for a given address or prefix.\n" \
     108 "\tSyntax:  set acl ip[/prefixlength] column=value,column=value...\n" \
     109 "\tColumn names as in acl display. Unset columns are inherited.\n"
     110 #define HELP_SQL          "Issue an sql command to the database."
     111
     112 void PC_interact(int sock);
     113
     114 #endif /* READ_PROTOCOL_CONFIG */

/* [<][>][^][v][top][bottom][index][help] */