ComponentSpace Proxy Class Library Reference

ProxyClientBase.EndConnect Method 

Completes the specified asynchronous connect operation.

[Visual Basic]
NotOverridable Public Function EndConnect( _
   ByVal asyncResult As IAsyncResult _
) As TcpClient _
    Implements IProxyClient.EndConnect
[C#]
public 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.

Implements

IProxyClient.EndConnect

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

ProxyClientBase Class | ComponentSpace.Proxy Namespace