home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / OFFLINE / UQWK18.ZIP / UQWK18.TAR / nntp.h < prev    next >
Text File  |  1993-07-29  |  3KB  |  101 lines

  1.  
  2.  
  3. /*
  4.  * This header file comes from NNTP 1.5.10
  5.  * It has been modified slightly to work with uqwk.
  6.  * It is used to read news articles from a remote
  7.  * news server.
  8.  *
  9.  *  -- Ken Whedbee   3/31/93
  10.  *
  11.  */
  12.  
  13.  
  14. /*
  15.  * Response codes for NNTP server
  16.  *
  17.  * @(#)Header: nntp.h,v 1.8 90/07/05 02:08:31 sob Exp $
  18.  *
  19.  * First digit:
  20.  *
  21.  *    1xx    Informative message
  22.  *    2xx    Command ok
  23.  *    3xx    Command ok so far, continue
  24.  *    4xx    Command was correct, but couldn't be performed
  25.  *        for some specified reason.
  26.  *    5xx    Command unimplemented, incorrect, or a
  27.  *        program error has occurred.
  28.  *
  29.  * Second digit:
  30.  *
  31.  *    x0x    Connection, setup, miscellaneous
  32.  *    x1x    Newsgroup selection
  33.  *    x2x    Article selection
  34.  *    x3x    Distribution
  35.  *    x4x    Posting
  36.  */
  37.  
  38. #define    CHAR_INF    '1'
  39. #define    CHAR_OK        '2'
  40. #define    CHAR_CONT    '3'
  41. #define    CHAR_ERR    '4'
  42. #define    CHAR_FATAL    '5'
  43.  
  44. #define    INF_HELP    100    /* Help text on way */
  45. #define    INF_AUTH    180    /* Authorization capabilities */
  46. #define    INF_DEBUG    199    /* Debug output */
  47.  
  48. #define    OK_CANPOST    200    /* Hello; you can post */
  49. #define    OK_NOPOST    201    /* Hello; you can't post */
  50. #define    OK_SLAVE    202    /* Slave status noted */
  51. #define    OK_GOODBYE    205    /* Closing connection */
  52. #define    OK_GROUP    211    /* Group selected */
  53. #define    OK_GROUPS    215    /* Newsgroups follow */
  54. #define    OK_ARTICLE    220    /* Article (head & body) follows */
  55. #define    OK_HEAD        221    /* Head follows */
  56. #define    OK_BODY        222    /* Body follows */
  57. #define    OK_NOTEXT    223    /* No text sent -- stat, next, last */
  58. #define    OK_NEWNEWS    230    /* New articles by message-id follow */
  59. #define    OK_NEWGROUPS    231    /* New newsgroups follow */
  60. #define    OK_XFERED    235    /* Article transferred successfully */
  61. #define    OK_POSTED    240    /* Article posted successfully */
  62. #define    OK_AUTHSYS    280    /* Authorization system ok */
  63. #define    OK_AUTH        281    /* Authorization (user/pass) ok */
  64.  
  65. #define    CONT_XFER    335    /* Continue to send article */
  66. #define    CONT_POST    340    /* Continue to post article */
  67. #define    NEED_AUTHINFO    380    /* authorization is required */
  68. #define    NEED_AUTHDATA    381    /* <type> authorization data required */
  69.  
  70. #define    ERR_GOODBYE    400    /* Have to hang up for some reason */
  71. #define    ERR_NOGROUP    411    /* No such newsgroup */
  72. #define    ERR_NCING    412    /* Not currently in newsgroup */
  73. #define    ERR_NOCRNT    420    /* No current article selected */
  74. #define    ERR_NONEXT    421    /* No next article in this group */
  75. #define    ERR_NOPREV    422    /* No previous article in this group */
  76. #define    ERR_NOARTIG    423    /* No such article in this group */
  77. #define    ERR_NOART    430    /* No such article at all */
  78. #define    ERR_GOTIT    435    /* Already got that article, don't send */
  79. #define    ERR_XFERFAIL    436    /* Transfer failed */
  80. #define    ERR_XFERRJCT    437    /* Article rejected, don't resend */
  81. #define    ERR_NOPOST    440    /* Posting not allowed */
  82. #define    ERR_POSTFAIL    441    /* Posting failed */
  83. #define    ERR_NOAUTH    480    /* authorization required for command */
  84. #define    ERR_AUTHSYS    481    /* Authorization system invalid */
  85. #define    ERR_AUTHREJ    482    /* Authorization data rejected */
  86.  
  87. #define    ERR_COMMAND    500    /* Command not recognized */
  88. #define    ERR_CMDSYN    501    /* Command syntax error */
  89. #define    ERR_ACCESS    502    /* Access to server denied */
  90. #define    ERR_FAULT    503    /* Program fault, command not performed */
  91. #define    ERR_AUTHBAD    580    /* Authorization Failed */
  92.  
  93. /* RFC 977 defines this; don't change it. */
  94.  
  95. #define    NNTP_STRLEN    512
  96.  
  97. /* MUST be in increasing order of completeness! */
  98. #define GET_STATUS    1        /* test for existence only */
  99. #define GET_HEADER    2        /* if only header items are desired */
  100. #define GET_ARTICLE    3        /* retreive full article  */
  101.