Socks5Handler Constructor (Socket, NegotiationCompleteDelegate, AuthenticationList)

Mentalis.org Proxy

Mentalis.org Proxy Documentation

Socks5Handler Constructor (Socket, NegotiationCompleteDelegate, AuthenticationList)

Initializes a new instance of the Socks5Handler class.

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

Parameters

ClientConnection
The connection with the client.
Callback
The method to call when the SOCKS negotiation is complete.
AuthList
The authentication list to use when clients connect.

Remarks

If the AuthList parameter is null, no authentication will be required when a client connects to the proxy server.

Exceptions

Exception Type Condition
System.ArgumentNullException Callback is null.

See Also

Socks5Handler Class | Socks5Handler Members | Org.Mentalis.Proxy.Socks Namespace | Socks5Handler Constructor Overload List