C# Class apophis.SharpIRC.StarkSoftProxy.Socks4aProxyClient

Socks4a connection proxy class. This class implements the Socks4a standard proxy protocol which is an extension of the Socks4 protocol
In Socks version 4A if the client cannot resolve the destination host's domain name to find its IP address the server will attempt to resolve it.
Inheritance: Socks4ProxyClient
Mostrar archivo Open project: FreeApophis/sharpIRC

Public Methods

Method Description
Socks4aProxyClient ( ) : System.Net.Sockets

Default constructor.

Socks4aProxyClient ( TcpClient tcpClient ) : System.Net.Sockets

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

Socks4aProxyClient ( string proxyHost ) : System.Net.Sockets

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

Socks4aProxyClient ( string proxyHost, int proxyPort ) : System.Net.Sockets

Create a Socks4a proxy client object.

Socks4aProxyClient ( string proxyHost, int proxyPort, string proxyUserId ) : System.Net.Sockets

Create a Socks4a proxy client object.

Socks4aProxyClient ( string proxyHost, string proxyUserId ) : System.Net.Sockets

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

Private Methods

Method Description
SendCommand ( NetworkStream proxy, byte command, string destinationHost, int destinationPort, string userId ) : void

Sends a command to the proxy server.

This method override the SendCommand message in the Sock4ProxyClient object. The override adds support for the Socks4a extensions which allow the proxy client to optionally command the proxy server to resolve the destination host IP address.

Method Details

Socks4aProxyClient() public method

Default constructor.
public Socks4aProxyClient ( ) : System.Net.Sockets
return System.Net.Sockets

Socks4aProxyClient() public method

Creates a Socks4 proxy client object using the supplied TcpClient object connection.
public Socks4aProxyClient ( TcpClient tcpClient ) : System.Net.Sockets
tcpClient System.Net.Sockets.TcpClient An open TcpClient object with an established connection.
return System.Net.Sockets

Socks4aProxyClient() public method

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

Socks4aProxyClient() public method

Create a Socks4a proxy client object.
public Socks4aProxyClient ( string proxyHost, int proxyPort ) : System.Net.Sockets
proxyHost string Host name or IP address of the proxy server.
proxyPort int Port used to connect to proxy server.
return System.Net.Sockets

Socks4aProxyClient() public method

Create a Socks4a proxy client object.
public Socks4aProxyClient ( string proxyHost, int proxyPort, string proxyUserId ) : System.Net.Sockets
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.Net.Sockets

Socks4aProxyClient() public method

Create a Socks4a proxy client object. The default proxy port 1080 is used.
public Socks4aProxyClient ( string proxyHost, string proxyUserId ) : System.Net.Sockets
proxyHost string Host name or IP address of the proxy server.
proxyUserId string Proxy user identification information for an IDENTD server.
return System.Net.Sockets