<< Previous | Index | Next >>

tcp_config


void tcp_config( char *name, char *value );

Description

Sets TCP/IP stack parameters at runtime. It should not be called with open sockets.

Note that there are specific (and safer) functions for modifying some of the common parameters.

This function is deprecated. It is highly recommended that you do NOT use it, since it uses strings, hence taking up lots of root data storage.

Parameters

name

Setting to be changed. The possible parameters are:

  • MY_IP_ADDRESS: host IP address (use sethostid() instead)
  • MY_NETMASK
  • MY_GATEWAY: host's default gateway
  • MY_NAMESERVER: host's default nameserver
  • MY_HOSTNAME
  • MY_DOMAINNAME: host's domain name (use setdomainname() instead)

value

The value to assign to name.

Return value

None.

Library

NET.LIB (Prior to DC 7.05, this was DCRTCP.LIB)

See Also

tcp_open, sock_close, sock_abort, sethostid, setdomainname, sethostname


TCP/IP Manual
Vol 1
<<Previous | Index | Next>> rabbit.com