mirror of
https://github.com/qicosmos/rest_rpc.git
synced 2026-08-29 08:34:47 +08:00
update for connect
This commit is contained in:
@@ -123,6 +123,9 @@ namespace rest_rpc {
|
||||
}
|
||||
|
||||
bool connect(size_t timeout = 1) {
|
||||
if (has_connected_)
|
||||
return true;
|
||||
|
||||
assert(port_ != 0);
|
||||
async_connect();
|
||||
return wait_conn(timeout);
|
||||
|
||||
Reference in New Issue
Block a user