MCPcopy Create free account
hub / github.com/boostorg/beast / fail

Function fail

example/websocket/server/async/websocket_server_async.cpp:38–42  ·  view source on GitHub ↗

Report a failure

Source from the content-addressed store, hash-verified

36
37// Report a failure
38void
39fail(beast::error_code ec, char const* what)
40{
41 std::cerr << what << ": " << ec.message() << "\n";
42}
43
44// Echoes back all received WebSocket messages
45class session : public std::enable_shared_from_this<session>

Callers 5

on_acceptMethod · 0.70
on_readMethod · 0.70
on_writeMethod · 0.70
listenerMethod · 0.70
on_acceptMethod · 0.70

Calls 1

messageMethod · 0.80

Tested by

no test coverage detected