MCPcopy Create free account
hub / github.com/dhewm/dhewm3 / ProcessConnectionLessMessages

Method ProcessConnectionLessMessages

neo/framework/async/AsyncServer.cpp:2311–2330  ·  view source on GitHub ↗

================== idAsyncServer::ProcessConnectionLessMessages ================== */

Source from the content-addressed store, hash-verified

2309==================
2310*/
2311void idAsyncServer::ProcessConnectionLessMessages( void ) {
2312 int size, id;
2313 idBitMsg msg;
2314 byte msgBuf[MAX_MESSAGE_SIZE];
2315 netadr_t from;
2316
2317 if ( !serverPort.GetPort() ) {
2318 return;
2319 }
2320
2321 while( serverPort.GetPacket( from, msgBuf, size, sizeof( msgBuf ) ) ) {
2322 msg.Init( msgBuf, sizeof( msgBuf ) );
2323 msg.SetSize( size );
2324 msg.BeginReading();
2325 id = msg.ReadShort();
2326 if ( id == CONNECTIONLESS_MESSAGE_ID ) {
2327 ConnectionlessMessage( from, msg );
2328 }
2329 }
2330}
2331
2332/*
2333==================

Callers

nothing calls this directly

Calls 6

BeginReadingMethod · 0.80
GetPortMethod · 0.45
GetPacketMethod · 0.45
InitMethod · 0.45
SetSizeMethod · 0.45
ReadShortMethod · 0.45

Tested by

no test coverage detected