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

Method open

lib_acl_cpp/src/mqtt/mqtt_aclient.cpp:54–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54bool mqtt_aclient::open(const char* addr, int conn_timeout, int rw_timeout) {
55 ACL_AIO* aio = handle_.get_handle();
56 if (acl_aio_connect_addr(aio, addr, conn_timeout,
57 connect_callback, this) == -1) {
58 logger_error("connect %s error %s", addr, last_serror());
59 return false;
60 }
61 rw_timeout_ = rw_timeout;
62 return true;
63}
64
65bool mqtt_aclient::open(aio_socket_stream* conn) {
66 conn_ = conn;

Callers

nothing calls this directly

Calls 12

acl_aio_connect_addrFunction · 0.85
add_close_callbackMethod · 0.80
add_timeout_callbackMethod · 0.80
add_read_callbackMethod · 0.80
readable_awaitMethod · 0.80
last_serrorFunction · 0.50
get_handleMethod · 0.45
createMethod · 0.45
setup_hookMethod · 0.45
handshakeMethod · 0.45
remove_hookMethod · 0.45
destroyMethod · 0.45

Tested by

no test coverage detected