| 245 | |
| 246 | |
| 247 | static 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 | |
| 263 | void joinInternetGame(const struct in_addr* inAddress) { |
no test coverage detected