Socks5Handler.BeginNegotiate Method (String, Int32, HandShakeComplete, IPEndPoint)

Mentalis.org ProxySocket

Mentalis.org ProxySocket Documentation

Socks5Handler.BeginNegotiate Method (String, Int32, HandShakeComplete, IPEndPoint)

Starts negotiating asynchronously with the SOCKS server.

[Visual Basic]Overrides Overloads Public Function BeginNegotiate( _
   ByVal host As String, _
   ByVal port As Integer, _
   ByVal callback As Org.Mentalis.Network.ProxySocket.HandShakeComplete, _
   ByVal proxyEndPoint As System.Net.IPEndPoint _
) As Org.Mentalis.Network.ProxySocket.IAsyncProxyResult
[C#]
public override IAsyncProxyResult BeginNegotiate(
   string host,
   int port,
   HandShakeComplete callback,
   IPEndPoint proxyEndPoint
);

Parameters

host
The host to connect to.
port
The port to connect to.
callback
The method to call when the negotiation is complete.
proxyEndPoint
The IPEndPoint of the SOCKS proxy server.

Return Value

An IAsyncProxyResult that references the asynchronous connection.

See Also

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