Mercurial > noffle
comparison src/client.h @ 180:09ca6eb5c7ff noffle
[svn] * TODO,src/client.c,src/client.h,src/fetch.c,src/fetch.h,src/noffle.c:
Improve error checking during fetches. A fetch is now aborted immediately
if the connection times out or if an unexpected response arrives.
This should fix problems with articles appearing in the wrong group,
and possibly other mysterious happenings.
author | bears |
---|---|
date | Wed, 09 May 2001 12:33:43 +0100 |
parents | 3c71e28c8eef |
children | f1bacee93ca6 |
comparison
equal
deleted
inserted
replaced
179:f973675760dc | 180:09ca6eb5c7ff |
---|---|
1 /* | 1 /* |
2 client.h | 2 client.h |
3 | 3 |
4 Noffle acting as client to other NNTP-servers | 4 Noffle acting as client to other NNTP-servers |
5 | 5 |
6 $Id: client.h 183 2000-07-25 12:14:54Z bears $ | 6 $Id: client.h 279 2001-05-09 11:33:43Z bears $ |
7 */ | 7 */ |
8 | 8 |
9 #ifndef CLIENT_H | 9 #ifndef CLIENT_H |
10 #define CLIENT_H | 10 #define CLIENT_H |
11 | 11 |
60 Client_getOver( const char *grp, int rmtFirst, int rmtLast, FetchMode mode ); | 60 Client_getOver( const char *grp, int rmtFirst, int rmtLast, FetchMode mode ); |
61 | 61 |
62 /* | 62 /* |
63 Retrieve full article text and store it into database. | 63 Retrieve full article text and store it into database. |
64 */ | 64 */ |
65 void | 65 Bool |
66 Client_retrieveArt( const char *msgId ); | 66 Client_retrieveArt( const char *msgId ); |
67 | 67 |
68 /* | 68 /* |
69 Same, but for a list of msgId's (new line after each msgId). | 69 Same, but for a list of msgId's (new line after each msgId). |
70 All ARTICLE commands are sent and then all answers read. | 70 All ARTICLE commands are sent and then all answers read. |
71 */ | 71 */ |
72 void | 72 Bool |
73 Client_retrieveArtList( const char *list, int *artcnt, int artmax ); | 73 Client_retrieveArtList( const char *list, int *artcnt, int artmax ); |
74 | 74 |
75 /* | 75 /* |
76 Store IDs of first and last article of group selected by | 76 Store IDs of first and last article of group selected by |
77 Client_changeToGroup at remote server. | 77 Client_changeToGroup at remote server. |