C4 Engine
C4 Engine API Documentation

NetworkMgr::GetLocalAddress

Defined in:  C4Network.h
Returns the network address of the local machine.
Prototype

const NetworkAddress& GetLocalAddress(void);

Description
The GetLocalAddress function returns a NetworkAddress object containing the 32-bit IP address of the local machine and the 16-bit port number currently in use. If the Network Manager has not been initialized, then the network address returned is filled with zeros.
See Also

NetworkMgr::Initialize

NetworkMgr::Terminate

NetworkMgr::GetPortNumber

NetworkMgr::SetPortNumber