MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / sendFlagNegotiation

Function sendFlagNegotiation

src/clientbase/playing.cpp:247–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245
246
247static void sendFlagNegotiation() {
248 char msg[MaxPacketLen];
249 FlagTypeMap::iterator i;
250 char* buf = msg;
251
252 /* Send MsgNegotiateFlags to the server with
253 * the abbreviations for all the flags we support.
254 */
255 for (i = FlagType::getFlagMap().begin();
256 i != FlagType::getFlagMap().end(); i++) {
257 buf = (char*) i->second->pack(buf);
258 }
259 serverLink->send(MsgNegotiateFlags, (int)(buf - msg), msg);
260}
261
262
263void joinInternetGame(const struct in_addr* inAddress) {

Callers 1

joinInternetGameFunction · 0.85

Calls 4

beginMethod · 0.45
endMethod · 0.45
packMethod · 0.45
sendMethod · 0.45

Tested by

no test coverage detected