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

Method finishCurrentFrame

Libraries/Http/HttpWebSocket.cpp:805–827  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

803 if (not result)
804 {
805 fail(result);
806 }
807}
808
809void HttpWebSocketClientHandshake::onResponse(HttpAsyncClientResponse& response)
810{
811 SC_HTTP_ASSERT_RELEASE(client != nullptr);
812 SC_HTTP_ASSERT_RELEASE(transport != nullptr);
813
814 Result result = HttpWebSocketHandshake::validateClientResponse(response, clientKey, sha1Mode);
815 if (result)
816 {
817 result = client->detachWebSocketTransport(*transport);
818 }
819 if (not result)
820 {
821 fail(result);
822 return;
823 }
824 if (onConnected.isValid())
825 {
826 onConnected(*transport);
827 }
828}
829
830void HttpWebSocketClientHandshake::onClientError(Result result) { fail(result); }

Callers

nothing calls this directly

Calls 2

isControlFrameMethod · 0.80
ResultClass · 0.50

Tested by

no test coverage detected