Starts negotiating with the SOCKS server.
[Visual Basic]Overloads Private Sub Negotiate( _
ByVal connect As Byte() _
)
[C#]
private void Negotiate(
byte[] connect
);
Parameters
- connect
- The bytes to send when trying to authenticate.
Exceptions
Exception Type | Condition |
---|---|
System.ArgumentNullException | connect is null. |
System.ArgumentException | connect is too small. |
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