*** Communication with servers (we are client) ***/ More...
Protected Member Functions | |
DECLARE_UDP_RECEIVE_COMMAND (PACKET_UDP_SERVER_RESPONSE) | |
DECLARE_UDP_RECEIVE_COMMAND (PACKET_UDP_MASTER_RESPONSE_LIST) | |
DECLARE_UDP_RECEIVE_COMMAND (PACKET_UDP_SERVER_NEWGRFS) | |
virtual void | HandleIncomingNetworkGameInfoGRFConfig (GRFConfig *config) |
Function that is called for every GRFConfig that is read when receiving a NetworkGameInfo. |
*** Communication with servers (we are client) ***/
Definition at line 249 of file network_udp.cpp.
void ClientNetworkUDPSocketHandler::HandleIncomingNetworkGameInfoGRFConfig | ( | GRFConfig * | config | ) | [protected, virtual] |
Function that is called for every GRFConfig that is read when receiving a NetworkGameInfo.
Only grfid and md5sum are set, the rest is zero. This function must set all appropriate fields. This GRF is later appended to the grfconfig list of the NetworkGameInfo.
config | the GRF to handle |
Reimplemented from NetworkUDPSocketHandler.
Definition at line 393 of file network_udp.cpp.
References AddGRFTextToList(), DuplicateGRFText(), FGCM_EXACT, GRFConfig::filename, FindGRFConfig(), FindUnknownGRFName(), GRFConfig::flags, GCF_COPY, GCS_NOT_FOUND, GRFIdentifier::grfid, GRFConfig::ident, GRFConfig::info, GRFIdentifier::md5sum, GRFConfig::name, SetBit(), and GRFConfig::status.