[#ConnectDirectly-0e] = ConnectDirectly :mrdocs: Create a socket and try to connect to the specified service. == Synopsis Declared in `<netbase.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::unique_ptr<Sock> ConnectDirectly( xref:CService.adoc[CService] const& dest, bool manual_connection); ---- == Return Value the connected socket if the operation succeeded, empty unique_ptr otherwise == Parameters [cols="1,4"] |=== | 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) |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#