| 290 | // ---------------------------------------------------------------------------------------- |
| 291 | |
| 292 | int connection:: |
| 293 | disable_nagle() |
| 294 | { |
| 295 | int flag = 1; |
| 296 | int status = setsockopt( connection_socket, IPPROTO_TCP, TCP_NODELAY, (char *)&flag, sizeof(flag) ); |
| 297 | |
| 298 | if (status == SOCKET_ERROR) |
| 299 | return OTHER_ERROR; |
| 300 | else |
| 301 | return 0; |
| 302 | } |
| 303 | |
| 304 | // ---------------------------------------------------------------------------------------- |
| 305 |
nothing calls this directly
no outgoing calls
no test coverage detected