Socket.Send Method (Byte[], Int32, SocketFlags)
Sends data to a bound socket, according to specified flags.
Namespace: System.Net.Sockets
Assembly: System (in system.dll)
Syntax
public int Send (
byte[] buffer,
int size,
SocketFlags socketFlags
)
Parameters
- buffer
An array that contains the data to be sent. - size
The size of the data to be sent, in bytes. - socketFlags
Bit flags that control the socket's behavior for sending and receiving data. The value of this parameter is a bitwise combination of members of the SocketFlags enumeration.
Return Value
The number of bytes actually sent, if the call was successful; otherwise, -1.
Version Information
Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, 4.1, and 4.2.