OpenDOF Project
void(* DTLConnection::Send)(DTLConnection connection, DOFAddress target, uint8 *data, uint32 offset, uint32 length)

Send data to the specified address.

This method should not block; if it does, the call may delay the caller longer than intended, and may result in the violation of certain expected timing constraints as well as poor performance. This call cannot fail. The transport may choose to queue the data for later delivery (for streaming connections), drop the data (for datagram connections), or close the connection. The actual data sent is data[offset] through data[length].

Note
Ownership of the data buffer is passed into this call. The transport is required to free the data buffer with PCRMem_Free().

This callback must not be NULL.

Parameters
connectionThe connection. This parameter must not be NULL.
targetThe target address. If this parameter is NULL, or the connection is point-to-point, this parameter is ignored and the peer address of the connection is assumed.
dataThe data buffer. data must not be NULL.
offsetThe offset into the data buffer where the data to send begins. This parameter must be less than length.
lengthThe length of the data to send.
core-c-dof-oal Version 8.0.1 Build 0
2018-01-22