ProxySocket.EndConnect Method (IAsyncResult)

Mentalis.org ProxySocket

Ends a pending asynchronous connection request.

[Visual Basic]Overloads Public Sub EndConnect( _
   ByVal asyncResult As System.IAsyncResult _
)
[C#]
public void EndConnect(
   IAsyncResult asyncResult
);

Parameters

asyncResult
Stores state information for this asynchronous operation as well as any user-defined data.

Exceptions

Exception TypeCondition
System.ArgumentNullExceptionThe asyncResult parameter is a null reference (Nothing in Visual Basic).
System.ArgumentExceptionThe asyncResult parameter was not returned by a call to the BeginConnect method.
System.Net.Sockets.SocketExceptionAn operating system error occurs while accessing the Socket.
System.ObjectDisposedExceptionThe Socket has been closed.
System.InvalidOperationExceptionEndConnect was previously called for the asynchronous connection.
Org.Mentalis.Network.ProxySocket.ProxyExceptionThe proxy server refused the connection.

See Also

ProxySocket Class | ProxySocket Members | Org.Mentalis.Network.ProxySocket Namespace | ProxySocket.EndConnect Overload List

ProxySocket.EndConnect Method (IAsyncResult)
Mentalis.org ProxySocket Documentation

ProxySocket.EndConnect Method (IAsyncResult)

Ends a pending asynchronous connection request.

[Visual Basic]
Overloads Public Sub EndConnect( _
   ByVal asyncResult As System.IAsyncResult _
)
[C#]
public void EndConnect(
   IAsyncResult asyncResult
);

Parameters

asyncResult
Stores state information for this asynchronous operation as well as any user-defined data.

Exceptions

Exception TypeCondition
System.ArgumentNullExceptionThe asyncResult parameter is a null reference (Nothing in Visual Basic).
System.ArgumentExceptionThe asyncResult parameter was not returned by a call to the BeginConnect method.
System.Net.Sockets.SocketExceptionAn operating system error occurs while accessing the Socket.
System.ObjectDisposedExceptionThe Socket has been closed.
System.InvalidOperationExceptionEndConnect was previously called for the asynchronous connection.
Org.Mentalis.Network.ProxySocket.ProxyExceptionThe proxy server refused the connection.

See Also

ProxySocket Class | ProxySocket Members | Org.Mentalis.Network.ProxySocket Namespace | ProxySocket.EndConnect Overload List