home *** CD-ROM | disk | FTP | other *** search
/ Super Net 1 / SUPERNET_1.iso / PC / OTROS / UNIX / ARCHIE / CLIENTS / ARCHIE-1.2 / MSDOS / NETEVENT.H < prev   
Encoding:
C/C++ Source or Header  |  1991-12-12  |  2.6 KB  |  62 lines

  1. /* hfile.inc - placed into all .h files to set up for PVCS 
  2.    $Header:   E:/pcdirs/vcs/netevent.h_v   1.0   15 Jan 1990 19:29:26   bkc  $
  3.    Revision History ----------------------------------------------------
  4.    $Log:   E:/pcdirs/vcs/netevent.h_v  $
  5.  * 
  6.  *    Rev 1.0   15 Jan 1990 19:29:26   bkc
  7. */
  8.  
  9.  
  10. /*
  11. *  Events for event processing in NCSA Telnet.
  12. *  Used for netgetevent().
  13. */
  14.  
  15.  
  16. #define USERCLASS    1    /* the user program will accept these events */
  17. #define ICMPCLASS    2    /* ICMP in netsleep will look for these */
  18. #define ERRCLASS    4    /* the user may or may not read these error messages */
  19. #define SCLASS        8    /* the background server will take these */
  20. #define CONCLASS    0x10    /* the application manages connections with these */
  21.  
  22. #define ERR1    1        /* an error message is waiting, ERRCLASS */
  23.  
  24. #define IREDIR    1        /* ICMP redirect, ICMPCLASS */
  25.  
  26. #define CONOPEN 1        /* connection has opened, CONCLASS */
  27. #define CONDATA 2       /* there is data available on this connection */
  28. #define CONCLOSE 3        /* the other side has closed its side of the connection */
  29. #define CONFAIL 4        /* connection open attempt has failed */
  30.  
  31. #define UDPDATA 1        /* UDP data has arrived on listening port, USERCLASS */
  32. #define DOMOK    2        /* domain name ready */
  33. #define DOMFAIL 3        /* domain name lookup failed */
  34. #define FTPCOPEN 20     /* FTP command connection has opened */
  35. #define FTPCLOSE 21     /* FTP command connection has closed */
  36. #define FTPBEGIN 22     /* FTP transfer beginning, dat =1 for get, 0 for put */
  37. #define FTPEND   23     /* FTP transfer ending */
  38. #define FTPLIST  24     /* FTP file listing taking place */
  39. #define FTPUSER  25     /* FTP user name has been entered */
  40. #define FTPPWOK    26        /* FTP password verified */
  41. #define FTPPWNO 27        /* FTP password failed */
  42. #define RCPBEGIN 30        /* RCP beginning */
  43. #define RCPEND 31        /* RCP ending */
  44.  
  45. #define UDPTO 1            /* UDP request from DOMAIN timed out, SCLASS */
  46. #define FTPACT 2        /* FTP transfer is active, keep sending */
  47. #define TCPTO  3        /* TCP for DOMAIN timed out */
  48. #define RCPACT 4        /* rcp is active, needs CPU time */
  49. #define RETRYCON 5        /* retry connection packet, might be lost */
  50. #define DOMNEXT 6               /* search next domain list entry */
  51. #define E_CLOCK 7
  52. #ifdef    SCRIPT
  53. #define    SCRIPT_EVENT    1    /* script next step */
  54. #define    SCRIPT_DATA    2    /* received some data */
  55. #define    SCRIPT_PROC    3    /* just process stuff */
  56. #define    SCRIPT_CLOSE    4    /* connection was closed */
  57. #define    SCRIPT_FORCE    5    /* user forced connection closed */
  58. #define    SCRIPT_DOMAIN    6    /* domain name lookup ok */
  59. #define    SCRIPT_FUNC    8
  60. /* int Script_Event(int type, void *twin, unsigned int data); */
  61. #endif
  62.