[#Socks5]
= Socks5
:mrdocs:

Connect to a specified destination service through an already connected SOCKS5 proxy&period;

== Synopsis

Declared in `&lt;netbase&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
Socks5(
    std::string const& strDest,
    uint16&lowbar;t port,
    xref:ProxyCredentials.adoc[ProxyCredentials] const* auth,
    xref:Sock.adoc[Sock] const& socket);
----

== Description

[NOTE]
====
The specified SOCKS5 proxy socket must already be connected to the SOCKS5 proxy&period;

====

== Return Value

Whether or not the operation succeeded&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *strDest*
| The destination fully&hyphen;qualified domain name&period;
| *port*
| The destination port&period;
| *auth*
| The credentials with which to authenticate with the specified SOCKS5 proxy&period;
| *socket*
| The SOCKS5 proxy socket&period;
|===

== See Also

https://www.ietf.org/rfc/rfc1928.txt[RFC1928&colon; SOCKS Protocol Version 5]


[.small]#Created with https://www.mrdocs.com[MrDocs]#
