MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / sendPing

Method sendPing

Libraries/Http/HttpWebSocket.cpp:1101–1111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1099 }
1100
1101 if (frame.masked)
1102 {
1103 for (size_t idx = 0; idx < 4; ++idx)
1104 {
1105 output[headerOffset++] = frame.maskKey[idx];
1106 }
1107 }
1108
1109 encodedHeader = {storage.data(), headerOffset};
1110 frameInProgress = true;
1111 payloadBytesRemaining = frame.payloadLength;
1112 payloadBytesWritten = 0;
1113 return Result(true);
1114}

Callers 3

automaticPongMethod · 0.80
connectionPumpMethod · 0.80

Calls 1

sizeInBytesMethod · 0.45

Tested by 3

automaticPongMethod · 0.64
connectionPumpMethod · 0.64