C4 Engine
C4 Engine API Documentation

NetworkMgr::SetBroadcastPortNumber

Defined in:  C4Network.h
Sets the port number to which broadcasted messages are sent.
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

NetworkMgr::GetBroadcastPortNumber

NetworkMgr::BroadcastPacket

NetworkMgr::GetPortNumber

NetworkMgr::SetPortNumber