10 date 90.04.05.15.06.18; author sources; state Exp;
15 date 89.11.17.15.57.13; author sources; state Exp;
21 @from the NNTP sources
32 * Response codes for NNTP server
34 * @@(#)nntp.h 1.7 (Berkeley) 1/11/88
38 * 1xx Informative message
40 * 3xx Command ok so far, continue
41 * 4xx Command was correct, but couldn't be performed
42 * for some specified reason.
43 * 5xx Command unimplemented, incorrect, or a
44 * program error has occured.
48 * x0x Connection, setup, miscellaneous
49 * x1x Newsgroup selection
50 * x2x Article selection
59 #define CHAR_FATAL '5'
61 #define INF_HELP 100 /* Help text on way */
62 #define INF_DEBUG 199 /* Debug output */
64 #define OK_CANPOST 200 /* Hello; you can post */
65 #define OK_NOPOST 201 /* Hello; you can't post */
66 #define OK_SLAVE 202 /* Slave status noted */
67 #define OK_GOODBYE 205 /* Closing connection */
68 #define OK_GROUP 211 /* Group selected */
69 #define OK_GROUPS 215 /* Newsgroups follow */
70 #define OK_ARTICLE 220 /* Article (head & body) follows */
71 #define OK_HEAD 221 /* Head follows */
72 #define OK_BODY 222 /* Body follows */
73 #define OK_NOTEXT 223 /* No text sent -- stat, next, last */
74 #define OK_NEWNEWS 230 /* New articles by message-id follow */
75 #define OK_NEWGROUPS 231 /* New newsgroups follow */
76 #define OK_XFERED 235 /* Article transferred successfully */
77 #define OK_POSTED 240 /* Article posted successfully */
79 #define CONT_XFER 335 /* Continue to send article */
80 #define CONT_POST 340 /* Continue to post article */
82 #define ERR_GOODBYE 400 /* Have to hang up for some reason */
83 #define ERR_NOGROUP 411 /* No such newsgroup */
84 #define ERR_NCING 412 /* Not currently in newsgroup */
85 #define ERR_NOCRNT 420 /* No current article selected */
86 #define ERR_NONEXT 421 /* No next article in this group */
87 #define ERR_NOPREV 422 /* No previous article in this group */
88 #define ERR_NOARTIG 423 /* No such article in this group */
89 #define ERR_NOART 430 /* No such article at all */
90 #define ERR_GOTIT 435 /* Already got that article, don't send */
91 #define ERR_XFERFAIL 436 /* Transfer failed */
92 #define ERR_XFERRJCT 437 /* Article rejected, don't resend */
93 #define ERR_NOPOST 440 /* Posting not allowed */
94 #define ERR_POSTFAIL 441 /* Posting failed */
96 #define ERR_COMMAND 500 /* Command not recognized */
97 #define ERR_CMDSYN 501 /* Command syntax error */
98 #define ERR_ACCESS 502 /* Access to server denied */
99 #define ERR_FAULT 503 /* Program fault, command not performed */
101 /* RFC 977 defines this; don't change it. */
103 #define NNTP_STRLEN 512
109 @changes for SUN40 shared libraries and NNTP under bbc