Core Socket Operations
| 127 | |
| 128 | // Core Socket Operations |
| 129 | int socket(int domain, int type, int protocol) FL_NOEXCEPT { |
| 130 | if (!initialize_winsock()) { |
| 131 | return -1; |
| 132 | } |
| 133 | SOCKET sock = ::socket(domain, type, protocol); |
| 134 | return (sock == INVALID_SOCKET) ? -1 : static_cast<int>(sock); |
| 135 | } |
| 136 | |
| 137 | int socketpair(int domain, int type, int protocol, int sv[2]) FL_NOEXCEPT { |
| 138 | // Windows doesn't support socketpair - return error |
nothing calls this directly
no test coverage detected