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

Function SNetReceiveMessage

SourceX/storm/storm_net.cpp:13–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11static char gpszGamePassword[128] = {};
12
13BOOL SNetReceiveMessage(int *senderplayerid, char **data, int *databytes)
14{
15 if (!dvlnet_inst->SNetReceiveMessage(senderplayerid, data, databytes)) {
16 SErrSetLastError(STORM_ERROR_NO_MESSAGES_WAITING);
17 return false;
18 }
19 return true;
20}
21
22BOOL SNetSendMessage(int playerID, void *data, unsigned int databytes)
23{

Callers 1

Calls 2

SErrSetLastErrorFunction · 0.85
SNetReceiveMessageMethod · 0.45

Tested by

no test coverage detected