SocksClient(Int32, String, Int32, NetworkCredential) Constructor

Initializes a new instance of the SocksClient class.

Definition

Namespace: MailKit.Net.Proxy
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
protected SocksClient(
	int version,
	string host,
	int port,
	NetworkCredential credentials
)

Parameters

version  Int32
The SOCKS protocol version.
host  String
The host name of the proxy server.
port  Int32
The proxy server port.
credentials  NetworkCredential
The credentials to use to authenticate with the proxy server.

Remarks

Initializes a new instance of the SocksClient class.

Exceptions

ArgumentNullException

host is .

-or-

credentialsis .

ArgumentOutOfRangeException port is not between 1 and 65535.
ArgumentException The host is a zero-length string.

See Also