C4 Engine Terathon Software C4 Engine API Documentation

• Network Manager

API Links
Developer Links

NetworkAddress::GetPort

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

unsigned short GetPort(voidconst;

Description
The GetPort function returns the 16-bit port number stored in a NetworkAddress object. The 32-bit IP address can be retrieved using the NetworkAddress::GetAddress function.
See Also

NetworkAddress::SetPort

NetworkAddress::GetAddress

NetworkAddress::Set