| 648 | } |
| 649 | |
| 650 | std::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 | |
| 661 | void net_stats(NETSTATS *stats_inout) |
| 662 | { |
no test coverage detected