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

Function sendString

src/shared/sockethelpers.cpp:218–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216}
217
218void sendString(const std::string& str)
219{
220#ifdef LIBTAS_LIBRARY
221 LOG(LL_DEBUG, LCF_SOCKET, "Send socket string %s", str.c_str());
222#endif
223 unsigned int str_size = str.size();
224 sendData(&str_size, sizeof(unsigned int));
225 if (str_size > 0)
226 sendData(str.c_str(), str_size);
227}
228
229int receiveData(void* elem, unsigned int size)
230{

Callers 14

incrementMethod · 0.85
sendAlertMsgFunction · 0.85
hook_patchFunction · 0.85
initFunction · 0.85
initProcessMessagesMethod · 0.85
startFrameMessagesMethod · 0.85
sleepSendPreviewMethod · 0.85
endFrameMessagesMethod · 0.85
processEventMethod · 0.85
saveMethod · 0.85
loadMethod · 0.85
postLoadMethod · 0.85

Calls 3

sendDataFunction · 0.85
c_strMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected