Socks4Handler Constructor

Mentalis.org Proxy

Mentalis.org Proxy Documentation

Socks4Handler Constructor 

Initializes a new instance of the Socks4Handler class.

[Visual Basic]Public Sub New( _
   ByVal ClientConnection As System.Net.Sockets.Socket, _
   ByVal Callback As Org.Mentalis.Proxy.Socks.NegotiationCompleteDelegate _
)
[C#]
public Socks4Handler(
   Socket ClientConnection,
   NegotiationCompleteDelegate Callback
);

Parameters

ClientConnection
The connection with the client.
Callback
The method to call when the SOCKS negotiation is complete.

Exceptions

Exception Type Condition
System.ArgumentNullException Callback is null.

See Also

Socks4Handler Class | Socks4Handler Members | Org.Mentalis.Proxy.Socks Namespace