Sends data to a bound socket according to specified flags, beginning at a specified location in the buffer array.

Namespace: GHIElectronics.NETMF.Net.Sockets
Assembly: GHIElectronics.NETMF.W5100 (in GHIElectronics.NETMF.W5100.dll) Version: 4.1.9.0 (4.1.9.0)

Syntax

C#
public int Send(
	byte[] buffer,
	int offset,
	int size,
	SocketFlags socketFlags
)

Parameters

buffer
Type: array<System..::..Byte>[]()[][]
An array that contains the data to be sent.
offset
Type: System..::..Int32
The location, relative to the beginning of the buffer array, at which the reading of data to be sent is to begin.
size
Type: System..::..Int32
The size of the data to be sent, in bytes.
socketFlags
Type: GHIElectronics.NETMF.Net.Sockets..::..SocketFlags
Ignored.

Return Value

The number of bytes actually sent, if the call was successful; otherwise, -1.

See Also