MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / OnDelayedMessage

Method OnDelayedMessage

ogsr_engine/xrGame/xrServer.cpp:346–368  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344void console_log_cb(LPCSTR text) { _tmp_log.push_back(text); }
345
346u32 xrServer::OnDelayedMessage(NET_Packet& P, ClientID sender) // Non-Zero means broadcasting with "flags" as returned
347{
348 u16 type;
349 P.r_begin(type);
350
351 csPlayers.Enter();
352
353 VERIFY(verify_entities());
354 xrClientData* CL = ID_to_client(sender);
355 R_ASSERT2(CL, make_string("packet type [%d]", type).c_str());
356
357 switch (type)
358 {
359 case M_CLIENT_REQUEST_CONNECTION_DATA: {
360 OnCL_Connected(CL);
361 }
362 break;
363 }
364 VERIFY(verify_entities());
365
366 csPlayers.Leave();
367 return 0;
368}
369
370extern float g_fCatchObjectTime;
371u32 xrServer::OnMessage(NET_Packet& P, ClientID sender) // Non-Zero means broadcasting with "flags" as returned

Callers

nothing calls this directly

Calls 5

make_stringFunction · 0.85
LeaveMethod · 0.80
r_beginMethod · 0.45
EnterMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected