Mentalis.org Security Library documentation

SecureSocket.EndSend Method 

Ends a pending asynchronous send.

[Visual Basic]
Overrides Public Function EndSend( _
   ByVal asyncResult As IAsyncResult _
) As Integer
[C#]
public override int EndSend(
   IAsyncResult asyncResult
);

Parameters

asyncResult
The result of the asynchronous operation.

Return Value

If successful, the number of bytes sent to the SecureSocket.

Exceptions

Exception TypeCondition
ArgumentNullExceptionasyncResult is a null reference (Nothing in Visual Basic).
ArgumentExceptionasyncResult was not returned by a call to the BeginSend method.
InvalidOperationExceptionEndSend was previously called for the asynchronous read.
SocketExceptionAn operating system error occurs while accessing the SecureSocket.
ObjectDisposedExceptionThe SecureSocket has been closed.

See Also

SecureSocket Class | SecureSocket Members | Org.Mentalis.Security.Ssl Namespace