Class FinSocks5Proxy
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
stringA 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
intSOCKS5 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
stringA 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
intSOCKS5 proxy server port. Must be in the range between 0 and 65535.
sUserName
stringUser name for username/password authentication. Only ASCII characters are allowed. Must not be longer than 255 chars.
sPassword
stringPassword 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
Password
public string Password { get; }
Property Value
Port
public int Port { get; }
Property Value
UserName
public string UserName { get; }