| 331 | } |
| 332 | |
| 333 | bool socket_stream::alive(double* tc1 /* NULL */, double* tc2 /* NULL */) const { |
| 334 | if (stream_ == NULL) { |
| 335 | return false; |
| 336 | } |
| 337 | #if 0 |
| 338 | if (acl_vstream_probe_status(stream_) == 0) |
| 339 | return true; |
| 340 | else |
| 341 | return false; |
| 342 | #else |
| 343 | if (tc1 || tc2) { |
| 344 | return acl_socket_alive2(ACL_VSTREAM_SOCK(stream_), tc1, tc2) != 0; |
| 345 | } |
| 346 | return acl_socket_alive(ACL_VSTREAM_SOCK(stream_)) != 0; |
| 347 | #endif |
| 348 | } |
| 349 | |
| 350 | socket_stream& socket_stream::set_tcp_nodelay(bool on) { |
| 351 | ACL_SOCKET sock = sock_handle(); |
no test coverage detected