Socks5Handler.Negotiate Method (IPEndPoint)

Mentalis.org ProxySocket

Mentalis.org ProxySocket Documentation

Socks5Handler.Negotiate Method (IPEndPoint)

Starts negotiating with the SOCKS server.

[Visual Basic]Overrides Overloads Public Sub Negotiate( _
   ByVal remoteEP As System.Net.IPEndPoint _
)
[C#]
public override void Negotiate(
   IPEndPoint remoteEP
);

Parameters

remoteEP
The IPEndPoint to connect to.

Exceptions

Exception Type Condition
System.ArgumentNullException remoteEP is null.
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