Method | Description | |
---|---|---|
CancelAsync ( ) : void |
Cancels any asychronous operation that is currently active.
|
|
CreateConnection ( string destinationHost, int destinationPort ) : |
Creates a TCP connection to the destination host through the proxy server host. 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. |
|
CreateConnectionAsync ( string destinationHost, int destinationPort ) : void |
Asynchronously creates a remote TCP connection through a proxy server to the destination host on the destination port using the supplied open TcpClient object with an open connection to proxy server. This instructs the proxy server to make a pass through connection to the specified destination host on the specified port. |
|
Socks4ProxyClient ( ) : System |
Create a Socks4 proxy client object. The default proxy port 1080 is used.
|
|
Socks4ProxyClient ( |
Creates a Socks4 proxy client object using the supplied TcpClient object connection.
|
|
Socks4ProxyClient ( string proxyHost ) : System |
Create a Socks4 proxy client object. The default proxy port 1080 is used.
|
|
Socks4ProxyClient ( string proxyHost, int proxyPort ) : System |
Create a Socks4 proxy client object.
|
|
Socks4ProxyClient ( string proxyHost, int proxyPort, string proxyUserId ) : System |
Create a Socks4 proxy client object.
|
|
Socks4ProxyClient ( string proxyHost, string proxyUserId ) : System |
Create a Socks4 proxy client object. The default proxy port 1080 is used.
|
Method | Description | |
---|---|---|
CreateAsyncWorker ( ) : void | ||
CreateConnectionAsync_DoWork ( object sender, |
||
CreateConnectionAsync_RunWorkerCompleted ( object sender, |
||
GetDestinationPortBytes ( int value ) : byte[] |
Translate the destination port value to a byte array.
|
|
GetIPAddressBytes ( string destinationHost ) : byte[] |
Translate the host name or IP address to a byte array.
|
|
HandleProxyCommandError ( byte response, string destinationHost, int destinationPort ) : void |
Receive a byte array from the proxy server and determine and handle and errors that may have occurred.
|
|
SendCommand ( NetworkStream proxy, byte command, string destinationHost, int destinationPort, string userId ) : void |
Sends a command to the proxy server.
|
|
WaitForData ( NetworkStream stream ) : void |
public CreateConnection ( string destinationHost, int destinationPort ) : |
||
destinationHost | string | Destination host name or IP address of the destination server. |
destinationPort | int | Port number to connect to on the destination server. |
return |
public CreateConnectionAsync ( string destinationHost, int destinationPort ) : void | ||
destinationHost | string | Destination host name or IP address. |
destinationPort | int | Port number to connect to on the destination host. |
return | void |
public Socks4ProxyClient ( |
||
tcpClient | A TcpClient connection object. | |
return | System |
public Socks4ProxyClient ( string proxyHost ) : System | ||
proxyHost | string | Host name or IP address of the proxy server. |
return | System |
public Socks4ProxyClient ( string proxyHost, int proxyPort ) : System | ||
proxyHost | string | Host name or IP address of the proxy server. |
proxyPort | int | Port used to connect to proxy server. |
return | System |
public Socks4ProxyClient ( string proxyHost, int proxyPort, string proxyUserId ) : System | ||
proxyHost | string | Host name or IP address of the proxy server. |
proxyPort | int | Port used to connect to proxy server. |
proxyUserId | string | Proxy user identification information. |
return | System |
public Socks4ProxyClient ( string proxyHost, string proxyUserId ) : System | ||
proxyHost | string | Host name or IP address of the proxy server. |
proxyUserId | string | Proxy user identification information. |
return | System |