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

Method SendError

source/server/asio/udp_server.cpp:604–615  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

602}
603
604void UDPServer::SendError(std::error_code ec)
605{
606 // Skip Asio disconnect errors
607 if ((ec == asio::error::connection_aborted) ||
608 (ec == asio::error::connection_refused) ||
609 (ec == asio::error::connection_reset) ||
610 (ec == asio::error::eof) ||
611 (ec == asio::error::operation_aborted))
612 return;
613
614 onError(ec.value(), ec.category().name(), ec.message());
615}
616
617} // namespace Asio
618} // namespace CppServer

Callers

nothing calls this directly

Calls 1

valueMethod · 0.80

Tested by

no test coverage detected