![]() |
• Network Manager | |||||
|
API Links
Developer Links
|
NetworkMgr::InitializeDefined in:
Initializes the Network Manager.
C4Network.h
Prototype
Description
The Initialize function attempts to initialize the underlying TCP/IP implementation and prepare the Network Manager for communications. The Initialize function returns one of the following network result codes.
Initialize is called, then the return value is kNetworkOkay—duplicate calls to Initialize are harmless.The NetworkMgr::SetPortNumber function should be called before the Initialize function is called to set the port number on which communications will occur. On client machines, the port number may be set to zero to indicate that any available port number may be chosen by the TCP/IP implementation.
See Also
NetworkMgr::Terminate
NetworkMgr::SetPortNumber
MessageMgr::BeginMultiplayerGame
|