MCPcopy Create free account
hub / github.com/acl-dev/acl / alive

Method alive

lib_acl_cpp/src/stream/socket_stream.cpp:333–348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

331}
332
333bool 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
350socket_stream& socket_stream::set_tcp_nodelay(bool on) {
351 ACL_SOCKET sock = sock_handle();

Callers 4

mainFunction · 0.45
write_headMethod · 0.45
runMethod · 0.45
check_deadMethod · 0.45

Calls 2

acl_socket_alive2Function · 0.85
acl_socket_aliveFunction · 0.85

Tested by

no test coverage detected