Completes the specified asynchronous connect operation.
IAsyncResult that identifies the asynchronous connect operation to finish, and from which to retrieve an end result.The TcpClient to use to communicate with the destination server.
When the ConnectCompleted event is raised, EndConnect completes the operation that was initiated by the BeginConnect call.
| Exception Type | Condition |
|---|---|
| ProxyException | Thrown when the connection fails. |