Addressing
| 143 | |
| 144 | // Addressing |
| 145 | int bind(int sockfd, const struct sockaddr *addr, socklen_t addrlen) FL_NOEXCEPT { |
| 146 | SOCKET sock = static_cast<SOCKET>(sockfd); |
| 147 | int result = ::bind(sock, reinterpret_cast<const ::sockaddr*>(addr), addrlen); // ok reinterpret cast |
| 148 | return (result == SOCKET_ERROR) ? -1 : 0; |
| 149 | } |
| 150 | |
| 151 | int connect(int sockfd, const struct sockaddr *addr, socklen_t addrlen) FL_NOEXCEPT { |
| 152 | SOCKET sock = static_cast<SOCKET>(sockfd); |
no outgoing calls
no test coverage detected