Mentalis.org Security Library documentation

SecureSocket.Send Method (Byte[], SocketFlags)

Sends data to a connected SecureSocket, starting at the indicated location in the data.

[Visual Basic]
Overrides Overloads Public Function Send( _
   ByVal buffer As Byte(), _
   ByVal socketFlags As SocketFlags _
) As Integer
[C#]
public override int Send(
   byte[] buffer,
   SocketFlags socketFlags
);

Parameters

buffer
The data to be sent.
socketFlags
A bitwise combination of the SocketFlags values.

Return Value

The number of bytes sent to the SecureSocket.

Exceptions

Exception TypeCondition
ArgumentNullExceptionbuffer is a null reference (Nothing in Visual Basic).
SocketExceptionAn operating system error occurs while accessing the SecureSocket.
ObjectDisposedExceptionThe SecureSocket has been closed.
SecurityExceptionUnable to encrypt the data.

See Also

SecureSocket Class | Org.Mentalis.Security.Ssl Namespace | SecureSocket.Send Overload List