home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / MISC / NETWORK / TEL23SRC.ZIP / INCLUDE / NETEVENT.H < prev    next >
Encoding:
C/C++ Source or Header  |  1990-05-25  |  2.0 KB  |  41 lines

  1. /*
  2. *  Events for event processing in NCSA Telnet.
  3. *  Used for netgetevent().
  4. */
  5.  
  6. #ifndef NETEVENT_H
  7.  
  8. #define USERCLASS    1        /* the user program will accept these events */
  9. #define ICMPCLASS    2        /* ICMP in netsleep will look for these */
  10. #define ERRCLASS    4        /* the user may or may not read these error messages */
  11. #define SCLASS        8        /* the background server will take these */
  12. #define CONCLASS    0x10    /* the application manages connections with these */
  13. #define ERR1        1        /* an error message is waiting, ERRCLASS */
  14. #define IREDIR        1        /* ICMP redirect, ICMPCLASS */
  15. #define CONOPEN     1        /* connection has opened, CONCLASS */
  16. #define CONDATA     2       /* there is data available on this connection */
  17. #define CONCLOSE     3        /* the other side has closed its side of the connection */
  18. #define CONFAIL     4        /* connection open attempt has failed */
  19. #define UDPDATA     1        /* UDP data has arrived on listening port, USERCLASS */
  20. #define DOMOK        2        /* domain name ready */
  21. #define DOMFAIL     3        /* domain name lookup failed */
  22. #define FTPCOPEN     20         /* FTP command connection has opened */
  23. #define FTPCLOSE     21         /* FTP command connection has closed */
  24. #define FTPBEGIN     22         /* FTP transfer beginning, dat =1 for get, 0 for put */
  25. #define FTPEND       23         /* FTP transfer ending */
  26. #define FTPLIST      24         /* FTP file listing taking place */
  27. #define FTPUSER      25         /* FTP user name has been entered */
  28. #define FTPPWOK        26        /* FTP password verified */
  29. #define FTPPWNO     27        /* FTP password failed */
  30. #define RCPBEGIN     30        /* RCP beginning */
  31. #define RCPEND         31        /* RCP ending */
  32. #define UDPTO         1        /* UDP request from DOMAIN timed out, SCLASS */
  33. #define FTPACT         2        /* FTP transfer is active, keep sending */
  34. #define TCPTO          3        /* TCP for DOMAIN timed out */
  35. #define RCPACT         4        /* rcp is active, needs CPU time */
  36. #define RETRYCON     5        /* retry connection packet, might be lost */
  37. #define CLOSEDONE     6        /* Close completion routine has been called (for Mac Drivers only) */
  38.  
  39. #define NETEVENT_H
  40. #endif
  41.