[#Proxy]
= Proxy
:mrdocs:

A proxy endpoint, either a network service or a local unix domain socket&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class Proxy;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:Proxy/2constructor-0a.adoc[`Proxy`]         [.small]#[constructor]#
| Constructors
| xref:Proxy/Connect.adoc[`Connect`] 
| Open a connection to this proxy&period;
| xref:Proxy/GetFamily.adoc[`GetFamily`] 
| Get the socket address family of this proxy&period;
| xref:Proxy/IsValid.adoc[`IsValid`] 
| Check whether this proxy is valid&period;
| xref:Proxy/ToString.adoc[`ToString`] 
| Get a human&hyphen;readable representation of this proxy&period;
|===


== Data Members

[cols="1,4"]
|===
| Name| Description
| xref:Proxy/m_is_unix_socket.adoc[`m&lowbar;is&lowbar;unix&lowbar;socket`] 
| Whether this proxy is a local unix domain socket&period;
| xref:Proxy/m_tor_stream_isolation.adoc[`m&lowbar;tor&lowbar;stream&lowbar;isolation`] 
| Whether Tor stream isolation is enabled for this proxy&period;
| xref:Proxy/m_unix_socket_path.adoc[`m&lowbar;unix&lowbar;socket&lowbar;path`] 
| Filesystem path of the unix domain socket (unused for service proxies)&period;
| xref:Proxy/proxy.adoc[`proxy`] 
| The proxy network service address (unused for unix socket proxies)&period;
|===


== Non-Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:ConnectThroughProxy.adoc[`ConnectThroughProxy`]
| Connect to a specified destination service through a SOCKS5 proxy by first connecting to the SOCKS5 proxy&period;
| xref:GetNameProxy.adoc[`GetNameProxy`]
| Get the configured name proxy, if any&period;
| xref:GetProxy.adoc[`GetProxy`]
| Get the proxy configured for a given network, if any&period;
| xref:SetNameProxy.adoc[`SetNameProxy`]
| Set the name proxy to use for all connections to nodes specified by a hostname&period; After setting this proxy, connecting to a node specified by a hostname won&apos;t result in a local lookup of said hostname, rather, connect to the node by asking the name proxy for a proxy connection to the hostname, effectively delegating the hostname lookup to the specified proxy&period;
|===


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