| 2773 | } |
| 2774 | |
| 2775 | inline bool is_connection_error() { |
| 2776 | #ifdef _WIN32 |
| 2777 | return WSAGetLastError() != WSAEWOULDBLOCK; |
| 2778 | #else |
| 2779 | return errno != EINPROGRESS; |
| 2780 | #endif |
| 2781 | } |
| 2782 | |
| 2783 | inline bool bind_ip_address(socket_t sock, const std::string &host) { |
| 2784 | struct addrinfo hints; |
no outgoing calls
no test coverage detected