home *** CD-ROM | disk | FTP | other *** search
/ Unix System Administration Handbook 1997 October / usah_oct97.iso / news / cnews.tar / contrib / include / msgid.h < prev    next >
C/C++ Source or Header  |  1992-10-30  |  1KB  |  32 lines

  1. /*
  2.  * Default place for the socket
  3.  */
  4. #define SOCKNAME    "/usr/lib/news/nntp_msgid"
  5. #define PIDFILE         "/usr/lib/news/msgidd.pid"
  6.  
  7. #ifdef NEEDMSGS
  8. /*
  9.  * Message types from client to server
  10.  *    MADD: Check for dup and add as needed.  Return value is non-0 for dup.
  11.  *    MCANCEL: Delete an id from the holding queues.  Return value is
  12.  *        non-0 for failure.
  13.  *    MHOST: inform the server who is on the other end of this nntpd.
  14.  *        Return value is non-0 for failure.  Used only in msgid_init().
  15.  *    MOLD: produce a log message of type "old"
  16.  */
  17. char *msgs[] = {
  18.     "add-",    /* Check for dup and add as needed. */
  19.     "can-",    /* Delete an id from the holding queues. */
  20.     "hst-",    /* inform the server who is on the other end */
  21.     "old-"    /* produce a log message of type "old" */
  22. };
  23. #endif
  24.  
  25. /* 
  26.  * Messages to client side called with (MUST BE IN SAME ORDER AS msgs[])
  27.  */
  28. #define MADD    0    /* Check for dup and add as needed. */
  29. #define    MCANCEL 1    /* Delete an id from the holding queues. */
  30. #define    MHOST    2    /* inform the server who is on the other end */
  31. #define MOLD    3    /* produce a log message of type "old" */
  32.