Class FinSocks5Proxy
SOCKS5 proxy configuration parameter
Inheritance
Inherited Members
Namespace: Subsembly.FinTS
Assembly: Subsembly.FinTS.Core.dll
Syntax
public class FinSocks5Proxy
Constructors
FinSocks5Proxy(String, Int32)
Creates a SOCKS5 proxy server configuration.
Declaration
public FinSocks5Proxy(string sAddress, int nPort)
Parameters
Type | Name | Description |
---|---|---|
System.String | sAddress | 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. |
System.Int32 | nPort | SOCKS5 proxy server port. Must be in the range between 0 and 65535. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | The parameter sAddress was |
System.ArgumentException | The parameter sAddress was a empty string or the parameter nPort was not in the range between 0 to 65535. |
System.ArgumentException | The parameter sAddress was not a valid Uri and not a valid DNS/IPv4/IPv6 host name. |
FinSocks5Proxy(String, Int32, String, String)
Creates a SOCKS5 proxy server configuration.
Declaration
public FinSocks5Proxy(string sAddress, int nPort, string sUserName, string sPassword)
Parameters
Type | Name | Description |
---|---|---|
System.String | sAddress | 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. |
System.Int32 | nPort | SOCKS5 proxy server port. Must be in the range between 0 and 65535. |
System.String | sUserName | User name for username/password authentication. Only ASCII characters are allowed. Must not be longer than 255 chars. |
System.String | sPassword | Password for username/password authentication. Only ASCII characters are allowed. Must not be longer than 255 chars. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | The parameter sAddress was |
System.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. |
System.ArgumentException | The parameter sAddress was not a valid Uri and not a valid DNS/IPv4/IPv6 host name. |
Properties
Address
Declaration
public string Address { get; }
Property Value
Type | Description |
---|---|
System.String |
Password
Declaration
public string Password { get; }
Property Value
Type | Description |
---|---|
System.String |
Port
Declaration
public int Port { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
UserName
Declaration
public string UserName { get; }
Property Value
Type | Description |
---|---|
System.String |