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

Function PipeSendData

NULLC/nullc_remote.h:271–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269}
270
271void PipeSendData(SOCKET sck, PipeData &data, const char* start, unsigned int count, unsigned int whole)
272{
273 unsigned int left = whole;
274 while(left)
275 {
276 data.question = false;
277 data.data.dataSize = left > 512 ? 512 : left;
278 data.data.wholeSize = whole;
279 data.data.elemCount = count;
280 memcpy(data.data.data, start + (whole - left), data.data.dataSize);
281 left -= data.data.dataSize;
282 int result = SocketSend(sck, (char*)&data, sizeof(data));
283 if(!result || result == -1)
284 break;
285 }
286}
287
288unsigned int csCount = 512;
289unsigned int *stackFrames = NULL;

Callers 2

PipeDebugBreakFunction · 0.85
GeneralCommandThreadFunction · 0.85

Calls 1

SocketSendFunction · 0.70

Tested by

no test coverage detected