C4 Engine
C4 Engine API Documentation

MessageMgr::BroadcastServerQuery

Defined in:  C4Messages.h
Locates servers on a LAN.
Prototype

void BroadcastServerQuery(voidconst;

Description
Calling the BroadcastServerQuery function causes a message to be broadcasted to the local area network asking servers to identify themselves. When a server receives this message, it calls the Application::HandleConnectionEvent function with the kConnectionQueryReceived event to inform the application module that it should send back information about the server.

Only servers using the same protocol as that used by the local machine will receive the broadcasted query. The local machine's protocol can be set by calling the Network Manager function NetworkMgr::SetProtocol.
See Also

NetworkMgr::SetProtocol

Application::HandleConnectionEvent