| 30 | } |
| 31 | |
| 32 | bool tcp_client::open() |
| 33 | { |
| 34 | if (!conn_->open(addr_, conn_timeout_, rw_timeout_)) { |
| 35 | logger_error("connnect %s error %s", addr_, last_serror()); |
| 36 | return false; |
| 37 | } |
| 38 | |
| 39 | return true; |
| 40 | } |
| 41 | |
| 42 | bool tcp_client::try_open(bool* reuse_conn) |
| 43 | { |
no test coverage detected