C# 클래스 apophis.SharpIRC.StarkSoftProxy.Socks4ProxyClient

Socks4 connection proxy class. This class implements the Socks4 standard proxy protocol.
This class implements the Socks4 proxy protocol standard for TCP communciations.
상속: IProxyClient
파일 보기 프로젝트 열기: FreeApophis/sharpIRC

공개 메소드들

메소드 설명
CancelAsync ( ) : void

Cancels any asychronous operation that is currently active.

CreateConnection ( string destinationHost, int destinationPort ) : TcpClient

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 ( TcpClient tcpClient ) : System

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.

비공개 메소드들

메소드 설명
CreateAsyncWorker ( ) : void
CreateConnectionAsync_DoWork ( object sender, DoWorkEventArgs e ) : void
CreateConnectionAsync_RunWorkerCompleted ( object sender, RunWorkerCompletedEventArgs e ) : void
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

메소드 상세

CancelAsync() 공개 메소드

Cancels any asychronous operation that is currently active.
public CancelAsync ( ) : void
리턴 void

CreateConnection() 공개 메소드

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.
public CreateConnection ( string destinationHost, int destinationPort ) : TcpClient
destinationHost string Destination host name or IP address of the destination server.
destinationPort int Port number to connect to on the destination server.
리턴 System.Net.Sockets.TcpClient

CreateConnectionAsync() 공개 메소드

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.
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.
리턴 void

Socks4ProxyClient() 공개 메소드

Create a Socks4 proxy client object. The default proxy port 1080 is used.
public Socks4ProxyClient ( ) : System
리턴 System

Socks4ProxyClient() 공개 메소드

Creates a Socks4 proxy client object using the supplied TcpClient object connection.
public Socks4ProxyClient ( TcpClient tcpClient ) : System
tcpClient System.Net.Sockets.TcpClient A TcpClient connection object.
리턴 System

Socks4ProxyClient() 공개 메소드

Create a Socks4 proxy client object. The default proxy port 1080 is used.
public Socks4ProxyClient ( string proxyHost ) : System
proxyHost string Host name or IP address of the proxy server.
리턴 System

Socks4ProxyClient() 공개 메소드

Create a Socks4 proxy client object.
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.
리턴 System

Socks4ProxyClient() 공개 메소드

Create a Socks4 proxy client object.
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.
리턴 System

Socks4ProxyClient() 공개 메소드

Create a Socks4 proxy client object. The default proxy port 1080 is used.
public Socks4ProxyClient ( string proxyHost, string proxyUserId ) : System
proxyHost string Host name or IP address of the proxy server.
proxyUserId string Proxy user identification information.
리턴 System