ComponentSpace Proxy Class Library Reference

IProxyClient.EndConnect Method 

Completes the specified asynchronous connect operation.

[Visual Basic]
Function EndConnect( _
   ByVal asyncResult As IAsyncResult _
) As TcpClient
[C#]
TcpClient EndConnect(
   IAsyncResult asyncResult
);

Parameters

asyncResult
The IAsyncResult that identifies the asynchronous connect operation to finish, and from which to retrieve an end result.

Return Value

The TcpClient to use to communicate with the destination server.

Remarks

When the ConnectCompleted event is raised, EndConnect completes the operation that was initiated by the BeginConnect call.

Exceptions

Exception Type Condition
ProxyException Thrown when the connection fails.

See Also

IProxyClient Interface | ComponentSpace.Proxy Namespace