| 2619 | } |
| 2620 | |
| 2621 | inline bool is_connection_error() { |
| 2622 | #ifdef _WIN32 |
| 2623 | return WSAGetLastError() != WSAEWOULDBLOCK; |
| 2624 | #else |
| 2625 | return errno != EINPROGRESS; |
| 2626 | #endif |
| 2627 | } |
| 2628 | |
| 2629 | inline bool bind_ip_address(socket_t sock, const char *host) { |
| 2630 | struct addrinfo hints; |
no outgoing calls
no test coverage detected