MCPcopy Create free account
hub / github.com/chronoxor/CppServer / SendError

Method SendError

source/server/asio/ssl_server.cpp:336–351  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

334}
335
336void SSLServer::SendError(std::error_code ec)
337{
338 // Skip Asio disconnect errors
339 if ((ec == asio::error::connection_aborted) ||
340 (ec == asio::error::connection_refused) ||
341 (ec == asio::error::connection_reset) ||
342 (ec == asio::error::eof) ||
343 (ec == asio::error::operation_aborted))
344 return;
345
346 // Skip Winsock error 995: The I/O operation has been aborted because of either a thread exit or an application request
347 if (ec.value() == 995)
348 return;
349
350 onError(ec.value(), ec.category().name(), ec.message());
351}
352
353} // namespace Asio
354} // namespace CppServer

Callers

nothing calls this directly

Calls 1

valueMethod · 0.80

Tested by

no test coverage detected