NetworkMgr::SetBroadcastPortNumber
Defined in:
Sets the port number to which broadcasted messages are sent.
C4Network.h
Prototype
void SetBroadcastPortNumber(uint16 port);
Parameters
port |
The 16-bit port number. |
Description
The port number passed to the SetBroadcastPortNumber
function is the port number to which broadcasted messages are sent. In order to be received, broadcasted messages must be sent to the port on which servers are listening. Thus, whatever port number is specified by a server when it calls NetworkMgr::SetPortNumber
is generally the same port number to which clients should broadcast.
See Also