| 254 | } |
| 255 | |
| 256 | TcpSocket::TcpSocket(const struct addrinfo *const host) |
| 257 | : Socket(host, SOCK_STREAM) |
| 258 | { |
| 259 | // AdsDll.lib seems to use TCP_NODELAY, we use it to be compatible |
| 260 | const int enable = 0; |
| 261 | if (setsockopt(m_Socket, IPPROTO_TCP, TCP_NODELAY, |
| 262 | (const char *)&enable, sizeof(enable))) { |
| 263 | LOG_WARN("Enabling TCP_NODELAY failed"); |
| 264 | } |
| 265 | } |
| 266 | |
| 267 | uint32_t TcpSocket::Connect() const |
| 268 | { |
nothing calls this directly
no outgoing calls
no test coverage detected