<< Previous | Index | Next >>

sethostid


longword sethostid( longword ip );

Description

This function changes the system's current IP address. Changing this address will disrupt existing TCP or UDP sessions. You should close all sockets before calling this function.

Normally there is no need to call this function. The macro MY_IP_ADDRESS defines an initial IP address for this host, or you can define USE_DHCP to obtain a dynamically assigned address. In either case, it is not recommended to use this function to change the address.

Parameters

ip

New IP address.

Return value

New IP address.

Library

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

See also

gethostid


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