C# Class SuperSocket.ClientEngine.Proxy.Socks5Connector

http://tools.ietf.org/html/rfc1928
Inheritance: SuperSocket.ClientEngine.Proxy.ProxyConnectorBase
Mostra file Open project: kerryjiang/SuperSocket.ClientEngine

Public Methods

Method Description
Connect ( EndPoint remoteEndPoint ) : void
Socks5Connector ( EndPoint proxyEndPoint ) : System
Socks5Connector ( EndPoint proxyEndPoint, SocketClientAccessPolicyProtocol clientAccessPolicyProtocol ) : System
Socks5Connector ( EndPoint proxyEndPoint, SocketClientAccessPolicyProtocol clientAccessPolicyProtocol, string username, string password ) : System
Socks5Connector ( EndPoint proxyEndPoint, string username, string password ) : System

Protected Methods

Method Description
ProcessConnect ( Socket socket, object targetEndPoint, SocketAsyncEventArgs e ) : void
ProcessReceive ( SocketAsyncEventArgs e ) : void
ProcessSend ( SocketAsyncEventArgs e ) : void

Private Methods

Method Description
AutheticateWithUserNamePassword ( SocketAsyncEventArgs e ) : void
OnGetFullResponse ( SocksContext context ) : void
ProcessAuthenticationResponse ( Socket socket, SocketAsyncEventArgs e ) : bool
SendHandshake ( SocketAsyncEventArgs e ) : void

Method Details

Connect() public method

public Connect ( EndPoint remoteEndPoint ) : void
remoteEndPoint System.Net.EndPoint
return void

ProcessConnect() protected method

protected ProcessConnect ( Socket socket, object targetEndPoint, SocketAsyncEventArgs e ) : void
socket Socket
targetEndPoint object
e SocketAsyncEventArgs
return void

ProcessReceive() protected method

protected ProcessReceive ( SocketAsyncEventArgs e ) : void
e SocketAsyncEventArgs
return void

ProcessSend() protected method

protected ProcessSend ( SocketAsyncEventArgs e ) : void
e SocketAsyncEventArgs
return void

Socks5Connector() public method

public Socks5Connector ( EndPoint proxyEndPoint ) : System
proxyEndPoint System.Net.EndPoint
return System

Socks5Connector() public method

public Socks5Connector ( EndPoint proxyEndPoint, SocketClientAccessPolicyProtocol clientAccessPolicyProtocol ) : System
proxyEndPoint System.Net.EndPoint
clientAccessPolicyProtocol SocketClientAccessPolicyProtocol
return System

Socks5Connector() public method

public Socks5Connector ( EndPoint proxyEndPoint, SocketClientAccessPolicyProtocol clientAccessPolicyProtocol, string username, string password ) : System
proxyEndPoint System.Net.EndPoint
clientAccessPolicyProtocol SocketClientAccessPolicyProtocol
username string
password string
return System

Socks5Connector() public method

public Socks5Connector ( EndPoint proxyEndPoint, string username, string password ) : System
proxyEndPoint System.Net.EndPoint
username string
password string
return System