MCPcopy Create free account
hub / github.com/WheretIB/nullc / PipeSendRequest

Function PipeSendRequest

SuperCalc.cpp:281–293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279}
280
281bool PipeSendRequest(PipeData &data)
282{
283 int result = RemoteData::SocketSend(RemoteData::sck, (char*)&data, sizeof(data), 5);
284 if(!result || result == -1)
285 {
286 if(!result)
287 MessageBox(hWnd, "Failed to send data through socket (select failed)", "ERROR", MB_OK);
288 else
289 MessageBox(hWnd, GetLastErrorDesc(), "Error", MB_OK);
290 return false;
291 }
292 return true;
293}
294
295char* PipeReceiveResponce(PipeData &data)
296{

Callers 3

PipeThreadFunction · 0.85
PipeReuqestDataFunction · 0.85
WndProcFunction · 0.85

Calls 2

GetLastErrorDescFunction · 0.85
SocketSendFunction · 0.70

Tested by

no test coverage detected