C4 Engine
C4 Engine API Documentation

NetworkAddress::SetPort

Defined in:  C4Network.h
Sets the 16-bit port number.
Prototype

void SetPort(uint16 pt);

Description
The SetPort function sets the port number of a NetworkAddress object to the value given by the pt parameter. The 32-bit IP address stored in the NetworkAddress object is not modified.
See Also

NetworkAddress::GetPort

NetworkAddress::GetAddress

NetworkAddress::Set