Socks5

Connect to a specified destination service through an already connected SOCKS5 proxy.

Synopsis

Declared in <netbase.h>

bool
Socks5(
    std::string const& strDest,
    uint16_t port,
    ProxyCredentials const* auth,
    Sock const& socket);

Description

NOTE

The specified SOCKS5 proxy socket must already be connected to the SOCKS5 proxy.

Return Value

Whether or not the operation succeeded.

Parameters

NameDescription
strDestThe destination fully-qualified domain name.
portThe destination port.
authThe credentials with which to authenticate with the specified SOCKS5 proxy.
socketThe SOCKS5 proxy socket.