Метод | Описание | |
---|---|---|
CreateConnection ( string destinationHost, int destinationPort, System.TimeSpan timeout ) : |
Creates a remote TCP connection through a proxy server to the destination host on the destination port. This method creates a connection to the proxy server and instructs the proxy server to make a pass through connection to the specified destination host on the specified port. |
|
HttpProxyClient ( ILog logger, string proxyHost, int proxyPort, string proxyUserName, string proxyPassword ) : System |
Constructor.
|
|
WithTcpClientFactory ( Func |
Метод | Описание | |
---|---|---|
EncodeTo64 ( string toEncode ) : string | ||
GetConnectCmd ( string host, int port ) : string | ||
HandleProxyCommandError ( string host, int port ) : void | ||
ParseCodeAndText ( string line ) : void | ||
ParseResponse ( string response ) : void | ||
SendConnectionCommand ( string host, int port ) : void | ||
WaitForData ( |
public CreateConnection ( string destinationHost, int destinationPort, System.TimeSpan timeout ) : |
||
destinationHost | string | Destination host name or IP address. |
destinationPort | int | Port number to connect to on the destination host. |
timeout | System.TimeSpan | Timeout duration for the Connect attempt. |
Результат |
public HttpProxyClient ( ILog logger, string proxyHost, int proxyPort, string proxyUserName, string proxyPassword ) : System | ||
logger | ILog | |
proxyHost | string | Host name or IP address of the proxy server. |
proxyPort | int | Port number for the proxy server. |
proxyUserName | string | Proxy authentication user name. |
proxyPassword | string | Proxy authentication password. |
Результат | System |
public WithTcpClientFactory ( Func |
||
tcpClientfactory | Func |
|
Результат | IProxyClient |