Mentalis.org Security Library documentation

SecureSocket.Send Method (Byte[])

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() _
) As Integer
[C#]
public override int Send(
   byte[] buffer
);

Parameters

buffer
The data to be sent.

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