home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 3 / PDCD_3.iso / internet / netlite / NET / h / NNTP < prev    next >
Text File  |  1993-04-12  |  1KB  |  46 lines

  1. #define NNTPMAXLEN      512
  2.  
  3. #define ID_LEN 28
  4.  
  5. #define NN_INIT_STATE  0
  6. #define NN_OPEN_STATE  1
  7. #define NN_DATA_STATE  2
  8. #define NN_QUIT_STATE  3
  9.  
  10. #define NN_INIT_STAGE  0
  11. #define NN_OPEN_STAGE  1
  12. #define NN_NEWG_STAGE  2
  13. #define NN_NEWN_STAGE  3
  14. #define NN_GETN_STAGE  4
  15.  
  16. static struct nntpservers {
  17.         struct timer nntpcli_t;
  18.         char *name;
  19.         char *abbr;
  20.         int lowtime, hightime;  /* for connect window */
  21.         struct nntpservers *next;
  22.         struct tcb *tcb;        /* tcp task control buffer */
  23.         int32   ipdest;         /* address of forwarding system */
  24.         char    state;          /* state machine placeholder */
  25.         char    stage;          /* another state machine placeholder */
  26.         char    buf[NNTPMAXLEN];/* Input buffer */
  27.         char    cnt;            /* Length of input buffer */
  28.         FILE    *rfile;
  29.         FILE    *sfile;
  30.         FILE    *tfile;
  31.         FILE    *id_file;
  32.         int     msg_tot;
  33.         char    goodrcpt;       /* are any of the rcpt ok */
  34.         char    cts;            /* clear to send state indication */
  35.         int     rcpts;          /* number of unacked rcpt commands */
  36.         struct  list    *errlog;
  37.         char (*got_table)[ID_LEN];
  38. };
  39.  
  40. #define NULLNNTP        (struct nntpservers *)NULL
  41.  
  42. /* In NNTPCLI */
  43. int nntptick(void *);
  44. int donntp(int, char **);
  45.  
  46.