C4 Engine
C4 Engine API Documentation

NetworkAddress::Set

Defined in:  C4Network.h
Sets the IP address and port number.
Prototype

NetworkAddress& Set(uint32 addr, uint16 pt = 0);

Parameters
addr The 32-bit IP address.
pt The 16-bit port number.
Description
The Set function sets the IP address of a NetworkAddress object to the address given by the addr parameter. The port number is set to the value given by the pt parameter.
See Also

NetworkAddress::GetAddress

NetworkAddress::GetPort

NetworkAddress::SetPort