| 52 | } |
| 53 | |
| 54 | bool 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 | |
| 65 | bool mqtt_aclient::open(aio_socket_stream* conn) { |
| 66 | conn_ = conn; |
nothing calls this directly
no test coverage detected