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 SC_TRY(applyOutgoingMask(header, maskKey));
1357 SC_TRY(sendFrame(header, {closePayload, closePayloadSize}, storage, encodedFrame));
1358 closeSent = true;
1359 return Result(true);
1360}
1361
1362Result HttpWebSocketEndpoint::getPendingControlFrame(Span<const char>& frame) const
1363{
1364 SC_TRY_MSG(hasPendingControlFrame(), "HttpWebSocketEndpoint no pending control frame");
1365 frame = pendingControlFrame;
1366 return Result(true);
1367}
1368
1369void HttpWebSocketEndpoint::clearPendingControlFrame() { pendingControlFrame = {}; }
1370
1371Result HttpWebSocketEndpoint::onReaderFrameHeader(const HttpWebSocketFrameHeaderView& header)
1372{
1373 currentFrame = header;

Callers

nothing calls this directly

Calls 3

ResultClass · 0.50

Tested by

no test coverage detected