ConnectDirectly overloads
Declared in <netbase.h>
Create a socket and try to connect to the specified service.
std::unique_ptr<Sock>
ConnectDirectly(
CService const& dest,
bool manual_connection);
» more...
Create a socket and try to connect to the specified service, using the provided timeout.
std::unique_ptr<Sock>
ConnectDirectly(
CService const& dest,
bool manual_connection,
std::chrono::milliseconds timeout);
» more...
| Name | Description |
|---|---|
| dest [in] | The service to which to connect. |
| manual_connection [in] | Whether or not the connection was manually requested (e.g. through the addnode RPC) |
| timeout [in] | How long to wait for the connection before giving up. |