Socks5Handler.Negotiate Method (String, Int32)

Mentalis.org ProxySocket

Mentalis.org ProxySocket Documentation

Socks5Handler.Negotiate Method (String, Int32)

Starts negotiating with the SOCKS server.

[Visual Basic]Overrides Overloads Public Sub Negotiate( _
   ByVal host As String, _
   ByVal port As Integer _
)
[C#]
public override void Negotiate(
   string host,
   int port
);

Parameters

host
The host to connect to.
port
The port to connect to.

Exceptions

Exception Type Condition
System.ArgumentNullException host is null.
System.ArgumentException port is invalid.
Org.Mentalis.Network.ProxySocket.ProxyException The proxy rejected the request.
System.Net.Sockets.SocketException An operating system error occurs while accessing the Socket.
System.ObjectDisposedException The Socket has been closed.
System.Net.ProtocolViolationException The proxy server uses an invalid protocol.

See Also

Socks5Handler Class | Socks5Handler Members | Org.Mentalis.Network.ProxySocket Namespace | Socks5Handler.Negotiate Overload List