home *** CD-ROM | disk | FTP | other *** search
/ Super Net 1 / SUPERNET_1.iso / PC / OTROS / MSDOS / NCSA / TEL2307S.ZIP / INCLUDE / NETEVENT.H < prev    next >
Encoding:
C/C++ Source or Header  |  1993-11-11  |  2.3 KB  |  46 lines

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