Mercurial > noffle
comparison client.h @ 0:04124a4423d4 noffle
[svn] Initial revision
| author | enz |
|---|---|
| date | Tue, 04 Jan 2000 11:35:42 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:04124a4423d4 |
|---|---|
| 1 /* | |
| 2 client.h | |
| 3 | |
| 4 Noffle acting as client to other NNTP-servers | |
| 5 | |
| 6 $Id: client.h 3 2000-01-04 11:35:42Z enz $ | |
| 7 */ | |
| 8 | |
| 9 #ifndef CLIENT_H | |
| 10 #define CLIENT_H | |
| 11 | |
| 12 #include <time.h> | |
| 13 #include "common.h" | |
| 14 #include "database.h" | |
| 15 #include "fetchlist.h" | |
| 16 | |
| 17 /* Format of server name: <host>[:<port>] */ | |
| 18 Bool | |
| 19 Client_connect( const char *serv ); | |
| 20 | |
| 21 void | |
| 22 Client_disconnect( void ); | |
| 23 | |
| 24 Bool | |
| 25 Client_getGrps( void ); | |
| 26 | |
| 27 Bool | |
| 28 Client_getDsc( void ); | |
| 29 | |
| 30 Bool | |
| 31 Client_getCreationTimes( void ); | |
| 32 | |
| 33 Bool | |
| 34 Client_getNewgrps( const time_t *lastTime ); | |
| 35 | |
| 36 /* | |
| 37 Change to group <name> at server if it is also in current local grouplist. | |
| 38 Returns TRUE at success. | |
| 39 */ | |
| 40 Bool | |
| 41 Client_changeToGrp( const Str name ); | |
| 42 | |
| 43 /* | |
| 44 Get overviews <rmtFirst> - <rmtLast> from server and append it | |
| 45 to the current content. For articles that are to be fetched due to FULL | |
| 46 or THREAD mode, store IDs in request database. | |
| 47 */ | |
| 48 Bool | |
| 49 Client_getOver( int rmtFirst, int rmtLast, FetchMode mode ); | |
| 50 | |
| 51 /* | |
| 52 Retrieve full article text and store it into database. | |
| 53 */ | |
| 54 void | |
| 55 Client_retrieveArt( const char *msgId ); | |
| 56 | |
| 57 /* | |
| 58 Same, but for a list of msgId's (new line after each msgId). | |
| 59 All ARTICLE commands are sent and then all answers read. | |
| 60 */ | |
| 61 void | |
| 62 Client_retrieveArtList( const char *list ); | |
| 63 | |
| 64 /* | |
| 65 Store IDs of first and last article of group selected by | |
| 66 Client_changeToGroup at remote server. | |
| 67 */ | |
| 68 void | |
| 69 Client_rmtFirstLast( int *first, int *last ); | |
| 70 | |
| 71 Bool | |
| 72 Client_postArt( const char *msgId, const char *artTxt, Str errStr ); | |
| 73 | |
| 74 #endif |
