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