C4 Engine
C4 Engine API Documentation

NetworkMgr::GetPortNumber

Defined in:  C4Network.h
Returns the port number on which the local machine will send and receive communications.
Prototype

uint16 GetPortNumber(voidconst;

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::SetPortNumber

NetworkMgr::GetBroadcastPortNumber

NetworkMgr::SetBroadcastPortNumber

NetworkMgr::Initialize

NetworkMgr::GetLocalAddress