home *** CD-ROM | disk | FTP | other *** search
/ GRIPS 2: Government Rast…rocessing Software & Data / GRIPS_2.cdr / dos / ncsa_tel / tel_2_2_ / source / netevent.h < prev    next >
Text File  |  1988-07-15  |  2KB  |  41 lines

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