home *** CD-ROM | disk | FTP | other *** search
/ Super Net 1 / SUPERNET_1.iso / PC / OTROS / MSDOS / WATTCP / COMD.ZIP / COM.H next >
Encoding:
C/C++ Source or Header  |  1991-06-11  |  679 b   |  40 lines

  1. #define COMSIZIN  1024
  2. #define COMSIZOUT 1024
  3.  
  4. #define PASSLENGTH 64
  5.  
  6. typedef enum connection {
  7.     INIT,
  8.     WAITING,
  9.     INITCOM,
  10.     ACTIVE,
  11.     CLOSING,
  12.     CLOSED };
  13. typedef enum mode232 {
  14.     RS232,
  15.     TEST,
  16.     HAYESMODEM };
  17.  
  18. typedef enum handshake {
  19.     HS_XOFF,
  20.     HS_MODEM };
  21. typedef struct com_info {
  22.     word    active;
  23.     word    mode;
  24.     word    handshake;
  25.     word    status;
  26.     word    baud;
  27.     word    parity;
  28.     word    bits;
  29.     word    stops;
  30.     word    tcpport;
  31.  
  32.     word    delay;
  33.     word    tickdelay;    /* converted to ticks */
  34.     longword    lastxmit;
  35.  
  36.     char    password[ PASSLENGTH ];
  37.     tcp_Socket    sock;
  38. };
  39.  
  40. extern struct com_info coms[5];