Logo Search packages:      
Sourcecode: galaxium version File versions  Download package

Org::Mentalis::Network::ProxySocket::ProxySocket Class Reference

List of all members.


Detailed Description

Implements a Socket class that can connect trough a SOCKS proxy server.

This class implements SOCKS4[A] and SOCKS5.
It does not, however, implement the BIND commands, so you cannot .

Definition at line 52 of file ProxySocket.cs.


Public Member Functions

IAsyncResult BeginConnect (string host, int port, AsyncCallback callback, object state)
 Begins an asynchronous request for a connection to a network device.
new IAsyncResult BeginConnect (EndPoint remoteEP, AsyncCallback callback, object state)
 Begins an asynchronous request for a connection to a network device.
void Connect (string host, int port)
 Establishes a connection to a remote device.
new void Connect (EndPoint remoteEP)
 Establishes a connection to a remote device.
new void EndConnect (IAsyncResult asyncResult)
 Ends a pending asynchronous connection request.
 ProxySocket (AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType, string proxyUsername, string proxyPassword)
 Initializes a new instance of the ProxySocket class.
 ProxySocket (AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType, string proxyUsername)
 Initializes a new instance of the ProxySocket class.
 ProxySocket (AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType)
 Initializes a new instance of the ProxySocket class.

Properties

IAsyncProxyResult AsyncResult [get, set]
 Gets or sets the asynchronous result object.
IPEndPoint ProxyEndPoint [get, set]
 Gets or sets the EndPoint of the proxy server.
string ProxyPass [get, set]
 Gets or sets the password to use when authenticating with the proxy.
ProxyTypes ProxyType [get, set]
 Gets or sets the type of proxy server to use.
string ProxyUser [get, set]
 Gets or sets the username to use when authenticating with the proxy.
int RemotePort [get, set]
 Gets or sets the remote port the user wants to connect to.
object State [get, set]
 Gets or sets a user-defined object.
Exception ToThrow [get, set]
 Gets or sets the exception to throw when the EndConnect method is called.

Private Member Functions

internal IAsyncProxyResult BeginDns (string host, HandShakeComplete callback)
 Begins an asynchronous request to resolve a DNS host name or IP address in dotted-quad notation to an IPAddress instance.
void OnConnect (IAsyncResult asyncResult)
 Called when the Socket is connected to the remote host.
void OnHandShakeComplete (Exception error)
 Called when the Socket has finished talking to the proxy server and is ready to relay data.
void OnResolved (IAsyncResult asyncResult)
 Called when the specified hostname has been resolved.

Private Attributes

AsyncCallback CallBack = null
 Holds a pointer to the method that should be called when the Socket is connected to the remote device.
IAsyncProxyResult m_AsyncResult
 Holds the value of the AsyncResult property.
IPEndPoint m_ProxyEndPoint = null
 Holds the value of the ProxyEndPoint property.
string m_ProxyPass = null
 Holds the value of the ProxyPass property.
ProxyTypes m_ProxyType = ProxyTypes.None
 Holds the value of the ProxyType property.
string m_ProxyUser = null
 Holds the value of the ProxyUser property.
int m_RemotePort
 Holds the value of the RemotePort property.
object m_State
 Holds the value of the State property.
Exception m_ToThrow = null
 Holds the value of the ToThrow property.

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index