home *** CD-ROM | disk | FTP | other *** search
/ The Pier Shareware 6 / The_Pier_Shareware_Number_6_(The_Pier_Exchange)_(1995).iso / 024 / psi110g.zip / NNTP.H < prev    next >
C/C++ Source or Header  |  1994-04-17  |  2KB  |  111 lines

  1. #ifndef _NNTP_H
  2. #define _NNTP_H
  3.   
  4. #include <dos.h>
  5.   
  6. #ifndef _GLOBAL_H
  7. #include "global.h"
  8. #endif
  9.   
  10. #ifndef _SMTP_H
  11. #include "smtp.h"
  12. #endif
  13.   
  14. struct nntpsv {
  15.     int s;
  16.     int ret;
  17.     int debug;
  18.     int slave;
  19.     unsigned  first;
  20.     unsigned  last;
  21.     unsigned  pointer;
  22.     unsigned  hold_i;
  23.     char buf[512];
  24.     char history[512];
  25.     char *newnews;
  26.     char *path;
  27.     char *fname;
  28.     char *id;
  29.     FILE *ihave;
  30.     int32 dest;
  31.     int32 unixtime;
  32.     long ftime;
  33.     struct date *datest;
  34.     struct time *timest;
  35.     struct article *ap;
  36. };
  37. #define NULLNNTPSV (struct nntpsv *)0
  38.   
  39. struct article {
  40.     char *group;
  41.     char *id;
  42.     char *path;
  43.     unsigned number;
  44.     unsigned tmpu;
  45.     struct article *next;
  46. };
  47. #define NULLARTICLE (struct article *)0
  48.   
  49. struct post {
  50.     char *user;
  51.     char *reply;
  52.     char *sig;
  53.     char *organ;
  54.     char *fullname;
  55. };
  56. #define NULLPOST (struct post *)0
  57.   
  58. struct groups {
  59.     struct article *a;
  60.     struct article *next;
  61. };
  62. #define NULLGROUP (struct groups *)0
  63.   
  64. struct head {
  65.     char *from;
  66.     char *reply_to;
  67.     char *subject;
  68.     char *id;
  69. };
  70. #define NULLHEAD (struct head *)0
  71.   
  72. struct g_list {
  73.     char *str;
  74.     struct g_list *next;
  75. };
  76. #define NULLG (struct g_list *)0
  77.   
  78. struct search {
  79.     struct g_list *not;
  80.     struct g_list *all;
  81.     struct g_list *group;
  82. };
  83. #define NULLSEARCH (struct search *)0
  84.   
  85. struct DFREE {
  86.     unsigned char drive;
  87.     unsigned long bytes;
  88.     struct DFREE *next;
  89. };
  90. #define NULLDRV (struct DFREE *)0
  91.   
  92. struct Servers {
  93.     struct timer nntpt;
  94.     char *name;
  95.     int32 dest;
  96.     char *newsgroups;       /* list of newsgroups */
  97.     int lowtime;            /* for connect window */
  98.     int hightime;
  99.     struct Servers *next;
  100. };
  101. #define NULLSERVER (struct Servers *)0
  102.   
  103. #define LineLen 512
  104.   
  105. int nntp1   __ARGS((int argc, char *argv[], void *p));
  106. int nntp0   __ARGS((int argc, char *argv[], void *p));
  107. int donntp  __ARGS((int argc, char *argv[], void *p));
  108. int nnGpost __ARGS((FILE *data,char *from,struct list *le));
  109.   
  110. #endif /* _NNTP_H */
  111.