Class FinSocks5Proxy

Namespace
Subsembly.FinTS
Assembly
Subsembly.FinTS.Core.dll

SOCKS5 proxy configuration parameter

public class FinSocks5Proxy
Inheritance
FinSocks5Proxy
Inherited Members

Constructors

FinSocks5Proxy(string, int)

Creates a SOCKS5 proxy server configuration.

public FinSocks5Proxy(string sAddress, int nPort)

Parameters

sAddress string

A valid Uri or a DNS/IPv4/IPv6 host name. If a full Uri was specified, the host name will be extracted and taken as the effective address.

nPort int

SOCKS5 proxy server port. Must be in the range between 0 and 65535.

Exceptions

ArgumentNullException

The parameter sAddress was null.

ArgumentException

The parameter sAddress was a empty string or the parameter nPort was not in the range between 0 to 65535.

ArgumentException

The parameter sAddress was not a valid Uri and not a valid DNS/IPv4/IPv6 host name.

FinSocks5Proxy(string, int, string, string)

Creates a SOCKS5 proxy server configuration.

public FinSocks5Proxy(string sAddress, int nPort, string sUserName, string sPassword)

Parameters

sAddress string

A valid Uri or a DNS/IPv4/IPv6 host name. If a full Uri was specified, the host name will be extracted and taken as the effective address.

nPort int

SOCKS5 proxy server port. Must be in the range between 0 and 65535.

sUserName string

User name for username/password authentication. Only ASCII characters are allowed. Must not be longer than 255 chars.

sPassword string

Password for username/password authentication. Only ASCII characters are allowed. Must not be longer than 255 chars.

Exceptions

ArgumentNullException

The parameter sAddress was null.

ArgumentException

The parameter sAddress was a empty string or the parameter nPort was not in the range between 0 to 65535 or the parameter sUserName has more than 255 characters or the parameter sPassword has more than 255 characters.

ArgumentException

The parameter sAddress was not a valid Uri and not a valid DNS/IPv4/IPv6 host name.

Properties

Address

public string Address { get; }

Property Value

string

Password

public string Password { get; }

Property Value

string

Port

public int Port { get; }

Property Value

int

UserName

public string UserName { get; }

Property Value

string