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

Method applyOutgoingMask

Libraries/Http/HttpWebSocket.cpp:1042–1062  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1040 {
1041 fragmentedMessageInProgress = not currentFrame.fin;
1042 }
1043 }
1044
1045 state = State::HeaderByte0;
1046 extendedLengthBytesExpected = 0;
1047 extendedLengthBytesRead = 0;
1048 maskBytesRead = 0;
1049 payloadBytesRemaining = 0;
1050 payloadBytesConsumed = 0;
1051 extendedLengthAccumulator = 0;
1052 return Result(true);
1053}
1054
1055void HttpWebSocketFrameWriter::reset(HttpWebSocketEndpointRole role)
1056{
1057 endpointRole = role;
1058 currentFrame = {};
1059 frameInProgress = false;
1060 fragmentedMessageInProgress = false;
1061 payloadBytesRemaining = 0;
1062 payloadBytesWritten = 0;
1063}
1064
1065Result HttpWebSocketFrameWriter::beginFrame(const HttpWebSocketFrameHeaderView& frame, Span<char> storage,

Callers

nothing calls this directly

Calls 2

ResultClass · 0.50

Tested by

no test coverage detected