#include <MPList.h>
Public Types | |
| enum | { F_SETPOSTFLAG = 0x01, F_CACHED = 0x02, F_OFFLINE = 0x04, F_SEMIOFFLINE = 0x08 } |
| enum | { F_LIST_ACTIVE_WILDMAT = 0x01, F_LIST_OVERVIEW_FMT = 0x02, F_LISTGROUP = 0x04, F_MODE_READER = 0x08, F_OVER = 0x10, F_XOVER = 0x20, F_POST = 0x40 } |
Public Member Functions | |
| MPListEntry () | |
| void | init (void) |
| void | printParameters (std::ostream *pOut) |
Public Attributes | |
| char | hostname [MAXHOSTNAMELEN] |
| char | servicename [256] |
| char | user [64] |
| char | passwd [64] |
| OverviewFmt | overview |
| char | read [2048] |
| char | postTo [2048] |
| char | bindFrom [2048] |
| time_t | groupTimeout |
| unsigned int | flags |
| unsigned int | nntpflags |
| int | retries |
|
|
Definition at line 19 of file MPList.h.
00019 {
00020 F_SETPOSTFLAG = 0x01,
00021 F_CACHED = 0x02,
00022 F_OFFLINE = 0x04,
00023 F_SEMIOFFLINE = 0x08
00024 };
|
|
|
Definition at line 26 of file MPList.h.
00026 {
00027 F_LIST_ACTIVE_WILDMAT = 0x01,
00028 F_LIST_OVERVIEW_FMT = 0x02,
00029 F_LISTGROUP = 0x04,
00030 F_MODE_READER = 0x08,
00031 F_OVER = 0x10,
00032 F_XOVER = 0x20,
00033 F_POST = 0x40
00034 };
|
|
|
Definition at line 85 of file MPList.h. References init().
00085 {
00086 init();
00087 }
|
|
|
Definition at line 89 of file MPList.h. References bindFrom, F_CACHED, F_SETPOSTFLAG, flags, groupTimeout, hostname, nntpflags, passwd, postTo, read, retries, servicename, and user. Referenced by MPListEntry().
00090 {
00091 hostname[0] = servicename[0] = '\0';
00092 user[0] = passwd[0] = '\0';
00093
00094 read[0] = postTo[0] = bindFrom[0] = '\0';
00095 groupTimeout = 600; // 10m
00096 retries = 3;
00097
00098 flags = F_SETPOSTFLAG | F_CACHED;
00099 nntpflags = 0xffffffff;
00100 }
|
|
|
Definition at line 45 of file MPList.cc. References bindFrom, F_CACHED, F_LIST_ACTIVE_WILDMAT, F_LIST_OVERVIEW_FMT, F_LISTGROUP, F_MODE_READER, F_OFFLINE, F_OVER, F_POST, F_SEMIOFFLINE, F_SETPOSTFLAG, F_XOVER, flags, groupTimeout, hostname, nntpflags, passwd, postTo, read, retries, servicename, and user.
00046 {
00047 if (hostname[0] != '\0') {
00048 *pOut << "\tServer " << hostname << " " << servicename
00049 << " {" << endl;
00050 } else {
00051 *pOut << "\tNoServer " << " {" << endl;
00052 }
00053 if (user[0] != '\0') {
00054 *pOut << "\t\tUser " << user << endl;
00055 }
00056 if (passwd[0] != '\0') {
00057 *pOut << "\t\tPassword " << passwd << endl;
00058 }
00059 if (read[0] != '\0') {
00060 *pOut << "\t\tRead "<< read << endl;
00061 }
00062 if (postTo[0] != '\0') {
00063 *pOut << "\t\tPostTo " << postTo << endl;
00064 }
00065 if (bindFrom[0] != '\0') {
00066 *pOut << "\t\tBindFrom " << bindFrom << endl;
00067 }
00068 *pOut << "\t\tGroupTimeout " << groupTimeout << endl;
00069 *pOut << "\t\tOptions";
00070 if (flags & F_SETPOSTFLAG) {
00071 *pOut << " setpostflag";
00072 }
00073 if (flags & F_CACHED) {
00074 *pOut << " cached";
00075 }
00076 if (flags & F_OFFLINE) {
00077 *pOut << " offline";
00078 }
00079 if (flags & F_SEMIOFFLINE) {
00080 *pOut << " semioffline";
00081 }
00082 *pOut << endl;
00083 if (~nntpflags) {
00084 *pOut << "\t\tCommands";
00085 if ((~nntpflags) & F_LIST_ACTIVE_WILDMAT) {
00086 *pOut << " list_active_wildmat";
00087 }
00088 if ((~nntpflags) & F_LIST_OVERVIEW_FMT) {
00089 *pOut << " list_overview_fmt";
00090 }
00091 if ((~nntpflags) & F_LISTGROUP) {
00092 *pOut << " not-listgroup";
00093 }
00094 if ((~nntpflags) & F_MODE_READER) {
00095 *pOut << " not-mode_reader";
00096 }
00097 if ((~nntpflags) & F_OVER) {
00098 *pOut << " not-over";
00099 }
00100 if ((~nntpflags) & F_XOVER) {
00101 *pOut << " not-xover";
00102 }
00103 if ((~nntpflags) & F_POST) {
00104 *pOut << " not-post";
00105 }
00106 *pOut << endl;
00107 }
00108 *pOut << "\t\tRetries " << retries << endl;
00109 *pOut << "\t}" << endl;
00110 }
|
|
|
Definition at line 45 of file MPList.h. Referenced by RServer::connect(), init(), printParameters(), and MPList::readServer(). |
|
|
Definition at line 48 of file MPList.h. Referenced by CServer::article(), CServer::getgroup(), CServer::groupinfo(), init(), CServer::listgroup(), CServer::overviewdb(), RServer::post(), printParameters(), and MPList::readServer(). |
|
|
Definition at line 46 of file MPList.h. Referenced by CServer::getgroup(), CServer::groupinfo(), init(), printParameters(), and MPList::readServer(). |
|
|
Definition at line 36 of file MPList.h. Referenced by RServer::connect(), init(), RServer::post(), printParameters(), MPList::readServer(), and RServer::setserver(). |
|
|
Definition at line 49 of file MPList.h. Referenced by RServer::active(), RServer::connect(), init(), RServer::overviewdb(), printParameters(), and MPList::readServer(). |
|
|
|
|
|
Definition at line 39 of file MPList.h. Referenced by RServer::connect(), init(), printParameters(), and MPList::readServer(). |
|
|
Definition at line 44 of file MPList.h. Referenced by init(), printParameters(), and MPList::readServer(). |
|
|
Definition at line 43 of file MPList.h. Referenced by RServer::active(), init(), printParameters(), and MPList::readServer(). |
|
|
Definition at line 50 of file MPList.h. Referenced by RServer::connect(), init(), RServer::issue(), RServer::post(), printParameters(), and MPList::readServer(). |
|
|
Definition at line 37 of file MPList.h. Referenced by RServer::connect(), init(), RServer::post(), printParameters(), MPList::readServer(), and RServer::setserver(). |
|
|
Definition at line 38 of file MPList.h. Referenced by RServer::connect(), init(), printParameters(), and MPList::readServer(). |
1.3.6-20040222