Mercurial > noffle
comparison src/protocol.h @ 281:5eece4dfd945 noffle
[svn] * src/log.c,src/log.h: Add Log_fatal() for reporting fatal errors
and exiting, Log_gdbm_fatal() for the the same but specifically as
a GDBM error reporting function, and a new log debug level AUTH for
a forthcoming authentication mechanism.
* src/database.c,src/group.c: Provide new gdbm error function to all
gdbm opens.
* src/noffle.c: Add atexit() to always close databases on a program-
inspired exit.
* src/content.c,src/dynamicstring.c,src/fetchlist.c,src/filter.c,
src/itemlist.c,src/log.c,src/log.h,src/over.c,src/protocol.h,
src/request.c,src/util.c: Use Log_fatal where appropriate.
author | bears |
---|---|
date | Fri, 27 Dec 2002 21:48:25 +0000 |
parents | 24d4cd032da5 |
children | baa6408d1bbc |
comparison
equal
deleted
inserted
replaced
280:9c54bf672ca1 | 281:5eece4dfd945 |
---|---|
2 protocol.h | 2 protocol.h |
3 | 3 |
4 Functions related with the NNTP protocol which are useful for both | 4 Functions related with the NNTP protocol which are useful for both |
5 the server and the client. | 5 the server and the client. |
6 | 6 |
7 $Id: protocol.h 316 2001-10-31 11:44:53Z bears $ | 7 $Id: protocol.h 413 2002-12-27 21:48:25Z bears $ |
8 */ | 8 */ |
9 | 9 |
10 #ifndef PRT_H | 10 #ifndef PRT_H |
11 #define PRT_H | 11 #define PRT_H |
12 | 12 |
31 #define STAT_BODY_FOLLOWS 222 | 31 #define STAT_BODY_FOLLOWS 222 |
32 #define STAT_ART_RETRIEVED 223 | 32 #define STAT_ART_RETRIEVED 223 |
33 #define STAT_OVERS_FOLLOW 224 | 33 #define STAT_OVERS_FOLLOW 224 |
34 #define STAT_NEW_GRP_FOLLOW 231 | 34 #define STAT_NEW_GRP_FOLLOW 231 |
35 #define STAT_POST_OK 240 | 35 #define STAT_POST_OK 240 |
36 #define STAT_AUTH_ACCEPTED 250 | 36 #define STAT_AUTH_ACCEPTED 281 |
37 #define STAT_AUTH_ACCEPTED_DEPREC 281 | |
38 | 37 |
39 #define STAT_SEND_ART 340 | 38 #define STAT_SEND_ART 340 |
40 #define STAT_MORE_AUTH_REQUIRED_DEPREC 381 | 39 #define STAT_MORE_AUTH_REQUIRED 381 |
41 | 40 |
42 #define STAT_NO_SUCH_GRP 411 | 41 #define STAT_NO_SUCH_GRP 411 |
43 #define STAT_NO_GRP_SELECTED 412 | 42 #define STAT_NO_GRP_SELECTED 412 |
44 #define STAT_NO_ART_SELECTED 420 | 43 #define STAT_NO_ART_SELECTED 420 |
45 #define STAT_NO_NEXT_ART 421 | 44 #define STAT_NO_NEXT_ART 421 |
46 #define STAT_NO_PREV_ART 422 | 45 #define STAT_NO_PREV_ART 422 |
47 #define STAT_NO_SUCH_NUMB 423 | 46 #define STAT_NO_SUCH_NUMB 423 |
48 #define STAT_NO_SUCH_ID 430 | 47 #define STAT_NO_SUCH_ID 430 |
49 #define STAT_ART_REJECTED 437 | 48 #define STAT_ART_REJECTED 437 |
50 #define STAT_POST_FAILED 441 | 49 #define STAT_POST_FAILED 441 |
51 #define STAT_AUTH_REQUIRED 450 | 50 #define STAT_AUTH_REQUIRED 480 |
52 #define STAT_AUTH_REJECTED 452 | 51 #define STAT_AUTH_REJECTED 482 |
53 #define STAT_AUTH_REQUIRED_DEPREC 480 | |
54 #define STAT_AUTH_REJECTED_DEPREC 482 | |
55 | 52 |
56 #define STAT_NO_SUCH_CMD 500 | 53 #define STAT_NO_SUCH_CMD 500 |
57 #define STAT_SYNTAX_ERR 501 | 54 #define STAT_SYNTAX_ERR 501 |
58 #define STAT_NO_PERMISSION 502 | 55 #define STAT_NO_PERMISSION 502 |
59 #define STAT_PROGRAM_FAULT 503 | 56 #define STAT_PROGRAM_FAULT 503 |
57 | |
58 /* Statuses from AUTHINFO SIMPLE - deprecated */ | |
59 #define STAT_AUTH_ACCEPTED_DEPREC 250 | |
60 #define STAT_AUTH_REQUIRED_DEPREC 450 | |
61 #define STAT_AUTH_REJECTED_DEPREC 452 | |
62 #define STAT_MORE_AUTH_REQUIRED_DEPREC 350 | |
60 | 63 |
61 /* | 64 /* |
62 Read next line from f into Str, up to "\n" or "\r\n". Don't save "\n" | 65 Read next line from f into Str, up to "\n" or "\r\n". Don't save "\n" |
63 or "\r\n" in line. Terminate with '\0'. | 66 or "\r\n" in line. Terminate with '\0'. |
64 If timeoutSeconds < 0, no timeout alarm is used. | 67 If timeoutSeconds < 0, no timeout alarm is used. |