home *** CD-ROM | disk | FTP | other *** search
/ Super Net 1 / SUPERNET_1.iso / PC / OTROS / MSDOS / WATTCP / UNZIPPED / MSWATTCP / APPS / TCPVARS.C < prev   
Encoding:
C/C++ Source or Header  |  1993-07-15  |  1.4 KB  |  34 lines

  1.  
  2. #include <stdio.h>
  3. #include <tcp.h>
  4.  
  5. void main() {
  6.  
  7.         char buf[20];
  8.         int i;
  9.  
  10.         sock_init();
  11.  
  12.         printf("my_ip_addr           = %s \n", w_inet_ntoa(buf,my_ip_addr) );
  13.         printf("_hostname            = %s \n", _hostname );
  14.         printf("sin_mask             = %s \n", w_inet_ntoa(buf,sin_mask) );
  15.         printf("_bootphost           = %s \n", w_inet_ntoa(buf,_bootphost) );
  16.         printf("_bootptimeout        = %d sec.\n", _bootptimeout );
  17.         printf("_last_nameserver     = %d \n", _last_nameserver );
  18.         for(i=0;i<_last_nameserver;i++)
  19.                 printf("def_nameservers[%d]   = %s\n",i,\
  20.                         w_inet_ntoa(buf,def_nameservers[i]) );
  21.         printf("_domaintimeout       = %d sec.\n", _domaintimeout );
  22.         printf("def_domain           = %s \n", def_domain );
  23.         /*printf("loc_domain           = %s \n",loc_domain );*/
  24.         printf("_arp_last_gateway    = %d \n", _arp_last_gateway );
  25.         
  26.         printf("sock_delay           = %d sec.\n", sock_delay );
  27.         printf("MaxBufSize           = %d bytes\n", MaxBufSize );
  28.         printf("TxMaxBufSize         = %d bytes\n", TxMaxBufSize );
  29.         printf("RxMaxBufSize         = %d bytes\n", RxMaxBufSize );
  30.         printf("_mss (max lungh. seg. Ether.) = %d bytes\n", _mss );
  31.         printf("_last_cookie         = %d \n", _last_cookie );
  32.         printf("sock_inactive        = %d \n", sock_inactive );
  33.         }
  34.