MCPcopy Create free account
hub / github.com/clementgallet/libTAS / receiveMessage

Function receiveMessage

src/shared/sockethelpers.cpp:264–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262}
263
264int receiveMessage()
265{
266 int msg;
267 int ret = receiveData(&msg, sizeof(int));
268#ifdef LIBTAS_LIBRARY
269 LOG(LL_DEBUG, LCF_SOCKET, "Receive socket message %d", msg);
270#endif
271 /* Handle special case for closed socket */
272 if (ret == 0)
273 return -2;
274
275 if (ret < 0)
276 return ret;
277 return msg;
278}
279
280int receiveMessageNonBlocking()
281{

Callers 9

frameBoundaryFunction · 0.85
receive_messagesFunction · 0.85
initFunction · 0.85
recvMethod · 0.85
initProcessMessagesMethod · 0.85
startFrameMessagesMethod · 0.85
saveMethod · 0.85
postLoadMethod · 0.85
resolutionMethod · 0.85

Calls 1

receiveDataFunction · 0.85

Tested by

no test coverage detected