MCPcopy Create free account
hub / github.com/ddnet/ddnet / net_error_message

Function net_error_message

src/base/net.cpp:650–659  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

648}
649
650std::string net_error_message()
651{
652 const int error = net_errno();
653#if defined(CONF_FAMILY_WINDOWS)
654 const std::string message = windows_format_system_message(error);
655 return std::to_string(error) + " '" + message + "'";
656#else
657 return std::to_string(error) + " '" + strerror(error) + "'";
658#endif
659}
660
661void net_stats(NETSTATS *stats_inout)
662{

Callers 4

net_set_blocking_implFunction · 0.85
priv_net_close_socketFunction · 0.85
priv_net_create_socketFunction · 0.85
net_udp_createFunction · 0.85

Calls 2

net_errnoFunction · 0.85

Tested by

no test coverage detected