SocksProxy

SocksProxy constructor (1 of 4)

Initializes a new instance of the SocksProxy class to connect to SOCKS4 server without authentication.

public SocksProxy(string address, int port)
Parameter Type Description
address String The domain name or IP address of the proxy
port Int32 The port number of the proxy

See Also


SocksProxy constructor (2 of 4)

Initializes a new instance of the SocksProxy class to connect to SOCKS4 or SOCKS5 server without authentication.

public SocksProxy(string address, int port, SocksVersion version)
Parameter Type Description
address String The domain name or IP address of the proxy
port Int32 The port number of the proxy
version SocksVersion Required SOCKS server version.

See Also


SocksProxy constructor (3 of 4)

Initializes a new instance of the SocksProxy class to connect to SOCKS4 server without authentication.

public SocksProxy(string address, int port, string userID)
Parameter Type Description
address String The domain name or IP address of the proxy
port Int32 The port number of the proxy
userID String UserID for Socks4 Identification Protocol (RFC 1413)

See Also


SocksProxy constructor (4 of 4)

Initializes a new instance of the SocksProxy class to connect to SOCKS5 server with defined username and password.

public SocksProxy(string address, int port, string username, string password)
Parameter Type Description
address String The domain name or IP address of the proxy
port Int32 The port number of the proxy
username String Username for authentication
password String Password for authentication

See Also