Serversend Method OpenDOF Object Access Library
Send data to the specified address.

Namespace: org.opendof.core.transport
Assembly: dof-oal (in dof-oal.dll) Version: 7.0.1.2
Syntax

C#
int send(
	DOFAddress target,
	byte[] data,
	int offset,
	int length
)

Parameters

target
Type: org.opendof.core.oalDOFAddress
The target address.
data
Type: SystemByte
The data to send. Ownership of the data does not transfer to the transport.
offset
Type: SystemInt32
The offset in packet where the data begins.
length
Type: SystemInt32
The length of the data.

Return Value

Type: Int32
The number of bytes that were sent.
Exceptions

ExceptionCondition
Exception If there are errors this exception may be thrown. This may cause some logging to occur, but otherwise is ignored.
Remarks

Send data to the specified address. This method should not block. This is only used for datagram servers (otherwise a connection would be used).
See Also

Reference