home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / N / TCPIP / NNTP-1.000 / NNTP-1 / nntp.1.5.11t / xmit / get_tcp_conn.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-10-17  |  590 b   |  32 lines

  1. /*
  2. ** Return codes from get_tcp_conn().
  3. */
  4. #ifndef    FAIL
  5. #define FAIL        (-1)        /* routine failed */
  6. #endif
  7. #define    NOHOST        (FAIL-1)    /* no such host */
  8. #define    NOSERVICE    (FAIL-2)    /* no such service */
  9.  
  10. #ifndef NULL
  11. #define    NULL    0
  12. #endif
  13.  
  14. #ifdef USG    /* brain-dead USG compilers can't deal with typedef */
  15. #define bcopy(a,b,c)   memcpy(b,a,c)
  16. #ifndef M_XENIX
  17. #ifndef dgux
  18. #define    u_long    unsigned long
  19. #define    u_short    unsigned short
  20. #endif
  21. #endif
  22. #endif
  23.  
  24. #ifdef    EXCELAN
  25. #define    NONETDB
  26. #define    OLDSOCKET
  27. #endif
  28.  
  29. #ifdef    NONETDB
  30. #define    IPPORT_NNTP    119        /* NNTP is on TCP port 119 */
  31. #endif    NONETDB
  32.