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

Method flushPendingControlFrame

Libraries/Http/HttpWebSocket.cpp:1358–1370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1356}
1357
1358Result HttpWebSocketConnectionPump::flushPendingControlFrame()
1359{
1360 if (not endpoint.hasPendingControlFrame())
1361 {
1362 return Result(true);
1363 }
1364
1365 Span<const char> controlFrame;
1366 SC_TRY(endpoint.getPendingControlFrame(controlFrame));
1367 SC_TRY(writeFrame(controlFrame));
1368 endpoint.clearPendingControlFrame();
1369 return Result(true);
1370}
1371
1372void HttpWebSocketConnectionPump::onData(AsyncBufferView::ID bufferID)
1373{

Callers

nothing calls this directly

Calls 3

ResultClass · 0.50

Tested by

no test coverage detected