NetworkMgr::GetPortNumber
Defined in:
Returns the port number on which the local machine will send and receive communications.
C4Network.h
Prototype
uint16 GetPortNumber(void) const;
Description
The port number returned by the GetPortNumber
function is the port number that will be utilized when the Network Manager is initialized. This number is not necessarily the port number in use by the Network Manager after initialization. To retrieve the actual port number in use by the local machine, call the NetworkMgr::GetLocalAddress
function.The port number that will be used by the Network Manager is set by calling the
NetworkMgr::SetPortNumber
function.
See Also
NetworkMgr::GetBroadcastPortNumber