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

Socks5 connection proxy class. This class implements the Socks5 standard proxy protocol.
This implementation supports TCP proxy connections with a Socks v5 server.
상속: IProxyClient
파일 보기 프로젝트 열기: FreeApophis/sharpIRC

공개 메소드들

메소드 설명
CancelAsync ( ) : void

Cancels any asychronous operation that is currently active.

CreateConnection ( string destinationHost, int destinationPort ) : TcpClient

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.

CreateConnectionAsync ( string destinationHost, int destinationPort ) : void

Asynchronously creates a remote TCP connection through a proxy server to the destination host on the destination port.

This method instructs the proxy server to make a pass through connection to the specified destination host on the specified port.

Socks5ProxyClient ( ) : System

Create a Socks5 proxy client object.

Socks5ProxyClient ( TcpClient tcpClient ) : System

Creates a Socks5 proxy client object using the supplied TcpClient object connection.

Socks5ProxyClient ( string proxyHost ) : System

Create a Socks5 proxy client object. The default proxy port 1080 is used.

Socks5ProxyClient ( string proxyHost, int proxyPort ) : System

Create a Socks5 proxy client object.

Socks5ProxyClient ( string proxyHost, int proxyPort, string proxyUserName, string proxyPassword ) : System

Create a Socks5 proxy client object.

Socks5ProxyClient ( string proxyHost, string proxyUserName, string proxyPassword ) : System

Create a Socks5 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
DetermineClientAuthMethod ( ) : void
GetDestAddressBytes ( byte addressType, string host ) : byte[]
GetDestAddressType ( string host ) : byte
GetDestPortBytes ( int value ) : byte[]
HandleProxyCommandError ( byte response, string destinationHost, int destinationPort ) : void
NegotiateServerAuthMethod ( ) : void
SendCommand ( byte command, string destinationHost, int destinationPort ) : void

메소드 상세

CancelAsync() 공개 메소드

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

CreateConnection() 공개 메소드

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.
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 host.
리턴 System.Net.Sockets.TcpClient

CreateConnectionAsync() 공개 메소드

Asynchronously creates a remote TCP connection through a proxy server to the destination host on the destination port.
This method 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

Socks5ProxyClient() 공개 메소드

Create a Socks5 proxy client object.
public Socks5ProxyClient ( ) : System
리턴 System

Socks5ProxyClient() 공개 메소드

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

Socks5ProxyClient() 공개 메소드

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

Socks5ProxyClient() 공개 메소드

Create a Socks5 proxy client object.
public Socks5ProxyClient ( 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

Socks5ProxyClient() 공개 메소드

Create a Socks5 proxy client object.
public Socks5ProxyClient ( string proxyHost, int proxyPort, string proxyUserName, string proxyPassword ) : System
proxyHost string Host name or IP address of the proxy server.
proxyPort int Port used to connect to proxy server.
proxyUserName string Proxy authentication user name.
proxyPassword string Proxy authentication password.
리턴 System

Socks5ProxyClient() 공개 메소드

Create a Socks5 proxy client object. The default proxy port 1080 is used.
public Socks5ProxyClient ( string proxyHost, string proxyUserName, string proxyPassword ) : System
proxyHost string Host name or IP address of the proxy server.
proxyUserName string Proxy authentication user name.
proxyPassword string Proxy authentication password.
리턴 System