home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume27 / mthreads / part01 / nntpclient.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-11-20  |  1.4 KB  |  48 lines

  1. /* $Id: nntpclient.h,v 3.0 1992/12/14 00:14:55 davison Trn $
  2. */ 
  3. /* The authors make no claims as to the fitness or correctness of this software
  4.  * for any use whatsoever, and it is provided as is. Any use of this software
  5.  * is at the user's own risk. 
  6.  */
  7.  
  8. #ifdef USE_NNTP
  9.  
  10. int    server_init _((char*));
  11.  
  12. int    nntp_connect _((void));
  13. void    nntp_command _((char*));
  14. char    nntp_check _((bool_int));
  15. int    nntp_gets _((char*, int));
  16. void    nntp_close _((void));
  17.  
  18. /* RFC 977 defines these, so don't change them */
  19.  
  20. #define    NNTP_CLASS_INF      '1'
  21. #define NNTP_CLASS_OK       '2'
  22. #define    NNTP_CLASS_CONT     '3'
  23. #define    NNTP_CLASS_ERR      '4'
  24. #define    NNTP_CLASS_FATAL    '5'
  25.  
  26. #define    NNTP_POSTOK_VAL     200    /* Hello -- you can post */
  27. #define    NNTP_NOPOSTOK_VAL    201    /* Hello -- you can't post */
  28.  
  29. #define NNTP_GOODBYE_VAL    400    /* Have to hang up for some reason */
  30. #define    NNTP_NOSUCHGROUP_VAL    411    /* No such newsgroup */
  31.  
  32. #define    NNTP_AUTH_NEEDED_VAL     480    /* Authorization Failed */
  33. #define    NNTP_AUTH_REJECT_VAL    482    /* Authorization data rejected */
  34.  
  35. #define    NNTP_BAD_COMMAND_VAL    500    /* Command not recognized */
  36. #define    NNTP_SYNTAX_VAL        501    /* Command syntax error */
  37. #define    NNTP_ACCESS_VAL     502    /* Access to server denied */
  38. #define    NNTP_TMPERR_VAL      503    /* Program fault, command not performed */
  39. #define    NNTP_AUTH_BAD_VAL     580    /* Authorization Failed */
  40.  
  41. #define    NNTP_STRLEN    512
  42.  
  43. EXT FILE *ser_rd_fp INIT(NULL);
  44. EXT FILE *ser_wr_fp INIT(NULL);
  45. EXT char ser_line[NNTP_STRLEN];
  46.  
  47. #endif /* USE_NNTP */
  48.