home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / old / ckermit5a190 / ckonet.h < prev    next >
C/C++ Source or Header  |  2020-01-01  |  1KB  |  43 lines

  1. /* assumes IBM TCP/IP 1.2.1 (or possibly higher) for OS/2 1.x and 2.x */
  2.  
  3. /* to avoid warnings/errors, you will have to fix the TCP/IP headers :
  4.  *
  5.  * in case of TCP/IP 1.2.1:
  6.  * - in netlib.h, remove the useless SIGALRM definition
  7.  * - in utils.h, replace // comments by regular ones 
  8.  * (both headers are not included directly but via types.h) *
  9.  *
  10.  * in case of TCP/IP 2.0:
  11.  * - in types.h, remove the useless SIGALRM definition
  12.  */
  13.  
  14. #include "ckotcp.h"
  15.  
  16. #define PIPENAML  _MAX_PATH   /* Max length for named pipe name */
  17.  
  18. /* Telnet constants */
  19. #define IAC  255
  20. #define AYT  246
  21. #define IP   244
  22.  
  23. #define TCPIPLIB
  24.  
  25. #define socket_errno           errno
  26. #define socket_read(f,s,n)     recv(f,s,n,0)
  27. #define socket_write(f,s,n)    send(f,s,n,0)
  28. #define socket_close           soclose
  29. #define socket_ioctl(f,c,b)    ioctl(f,c,(char *)b,sizeof(long))
  30. /* this is a bit dangerous, but we always read a long with sioctl */
  31.  
  32. _PROTOTYP( void netinit, (void) );
  33. _PROTOTYP( int netcleanup, (void) );
  34.  
  35. _PROTOTYP( int os2_netopen, (char *, int *, int) );
  36. _PROTOTYP( int os2_netclos, (void) );
  37. _PROTOTYP( int os2_netflui, (void) );
  38. _PROTOTYP( int os2_nettchk, (void) );
  39. _PROTOTYP( int os2_netbreak, (void) );
  40. _PROTOTYP( int os2_netinc, (int) );
  41. _PROTOTYP( int os2_nettol, (char *, int) );
  42. _PROTOTYP( int os2_nettoc, (int) );
  43.