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

Mentalis.org ProxySocket

Mentalis.org ProxySocket Documentation

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

Starts negotiating asynchronously with a SOCKS proxy 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 remote server to connect to.
port
The remote port to connect to.
callback
The method to call when the connection has been established.
proxyEndPoint
The IPEndPoint of the SOCKS proxy server.

Return Value

An IAsyncProxyResult that references the asynchronous connection.

See Also

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