home *** CD-ROM | disk | FTP | other *** search
- #define NNTPMAXLEN 512
-
- #define ID_LEN 28
-
- #define NN_INIT_STATE 0
- #define NN_OPEN_STATE 1
- #define NN_DATA_STATE 2
- #define NN_QUIT_STATE 3
-
- #define NN_INIT_STAGE 0
- #define NN_OPEN_STAGE 1
- #define NN_NEWG_STAGE 2
- #define NN_NEWN_STAGE 3
- #define NN_GETN_STAGE 4
-
- static struct nntpservers {
- struct timer nntpcli_t;
- char *name;
- char *abbr;
- int lowtime, hightime; /* for connect window */
- struct nntpservers *next;
- struct tcb *tcb; /* tcp task control buffer */
- int32 ipdest; /* address of forwarding system */
- char state; /* state machine placeholder */
- char stage; /* another state machine placeholder */
- char buf[NNTPMAXLEN];/* Input buffer */
- char cnt; /* Length of input buffer */
- FILE *rfile;
- FILE *sfile;
- FILE *tfile;
- FILE *id_file;
- int msg_tot;
- char goodrcpt; /* are any of the rcpt ok */
- char cts; /* clear to send state indication */
- int rcpts; /* number of unacked rcpt commands */
- struct list *errlog;
- char (*got_table)[ID_LEN];
- };
-
- #define NULLNNTP (struct nntpservers *)NULL
-
- /* In NNTPCLI */
- int nntptick(void *);
- int donntp(int, char **);
-
-