Socks4Handler.Negotiate Method (String, Int32)

Mentalis.org ProxySocket

Mentalis.org ProxySocket Documentation

Socks4Handler.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.

See Also

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