MCPcopy Create free account
hub / github.com/diasurgical/devilution / SNetReceiveMessage

Method SNetReceiveMessage

SourceX/dvlnet/loopback.cpp:17–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15}
16
17bool loopback::SNetReceiveMessage(int *sender, char **data, int *size)
18{
19 if (message_queue.empty())
20 return false;
21 message_last = message_queue.front();
22 message_queue.pop();
23 *sender = plr_single;
24 *size = message_last.size();
25 *data = reinterpret_cast<char *>(message_last.data());
26 return true;
27}
28
29bool loopback::SNetSendMessage(int dest, void *data, unsigned int size)
30{

Callers

nothing calls this directly

Calls 5

frontMethod · 0.80
popMethod · 0.80
emptyMethod · 0.45
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected