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

Method getPendingControlFrame

Libraries/Http/HttpWebSocket.cpp:1155–1160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1153}
1154
1155Result HttpWebSocketEndpoint::getPendingControlFrame(Span<const char>& frame) const
1156{
1157 SC_TRY_MSG(hasPendingControlFrame(), "HttpWebSocketEndpoint no pending control frame");
1158 frame = pendingControlFrame;
1159 return Result(true);
1160}
1161
1162void HttpWebSocketEndpoint::clearPendingControlFrame() { pendingControlFrame = {}; }
1163

Callers 3

automaticPongMethod · 0.80
closeEchoMethod · 0.80

Calls 2

hasPendingControlFrameFunction · 0.85
ResultClass · 0.50

Tested by 2

automaticPongMethod · 0.64
closeEchoMethod · 0.64