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

Name

Description

strDest

The destination fully‐qualified domain name.

port

The destination port.

auth

The credentials with which to authenticate with the specified SOCKS5 proxy.

socket

The SOCKS5 proxy socket.

See Also