Added all of the MH sources, including RCS files, in
[mmh] / docs / historical / mh-6.8.5 / h / RCS / nntp.h,v
1 head     2.1;
2 branch   ;
3 access   ;
4 symbols  ;
5 locks    ; strict;
6 comment  @ * @;
7
8
9 2.1
10 date     90.04.05.15.06.18;  author sources;  state Exp;
11 branches ;
12 next     2.0;
13
14 2.0
15 date     89.11.17.15.57.13;  author sources;  state Exp;
16 branches ;
17 next     ;
18
19
20 desc
21 @from the NNTP sources
22 @
23
24
25 2.1
26 log
27 @add ID
28 @
29 text
30 @/* @@(#)$Id:$ */
31 /*
32  * Response codes for NNTP server
33  *
34  * @@(#)nntp.h  1.7     (Berkeley) 1/11/88
35  *
36  * First digit:
37  *
38  *      1xx     Informative message
39  *      2xx     Command ok
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.
45  *
46  * Second digit:
47  *
48  *      x0x     Connection, setup, miscellaneous
49  *      x1x     Newsgroup selection
50  *      x2x     Article selection
51  *      x3x     Distribution
52  *      x4x     Posting
53  */
54
55 #define CHAR_INF        '1'
56 #define CHAR_OK         '2'
57 #define CHAR_CONT       '3'
58 #define CHAR_ERR        '4'
59 #define CHAR_FATAL      '5'
60
61 #define INF_HELP        100     /* Help text on way */
62 #define INF_DEBUG       199     /* Debug output */
63
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 */
78
79 #define CONT_XFER       335     /* Continue to send article */
80 #define CONT_POST       340     /* Continue to post article */
81
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 */
95
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 */
100
101 /* RFC 977 defines this; don't change it. */
102
103 #define NNTP_STRLEN     512
104 @
105
106
107 2.0
108 log
109 @changes for SUN40 shared libraries and NNTP under bbc
110 @
111 text
112 @d1 1
113 @