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

Function handleRejectMessage

src/clientbase/playing.cpp:1180–1191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1178
1179
1180void handleRejectMessage(void* msg) {
1181 void* buf;
1182 char buffer[MessageLen];
1183 uint16_t rejcode;
1184 std::string reason;
1185
1186 buf = nboUnpackUInt16(msg, rejcode); // filler for now
1187 buf = nboUnpackString(buf, buffer, MessageLen);
1188 buffer[MessageLen - 1] = '\0';
1189 reason = buffer;
1190 showError(reason.c_str());
1191}
1192
1193
1194void handleFlagNegotiation(void* msg, uint16_t len) {

Callers 1

handleServerMessageFunction · 0.85

Calls 4

nboUnpackUInt16Function · 0.85
nboUnpackStringFunction · 0.85
c_strMethod · 0.80
showErrorFunction · 0.50

Tested by

no test coverage detected