OpenDOF Project
Data Fields
DOSCallbacks::DOSTransportCallbacks_t Struct Reference

The transport interface structure. More...

Data Fields

boolean(*const IsAddressMulticast )(const uint8 *addr)
 Report whether a transport address is multicast/broadcast or unicast.
 
DOSStatus(*const Send )(const uint8 *addr, const uint8 *data, uint32 size)
 Send data to the specified address.
 

Detailed Description

The transport interface structure.

This interface is implemented by the application's transport, and is responsible for providing the COS with necessary transport functionality. The application may choose a variety of strategies to implement this functionality. The transport should provide a mechanism for broadcast/multicast to other OpenDOF nodes.

In addition to implementing these callbacks, the following must occur when data is received from the transport:

The data buffer and length must be set in DOSContext.RecvBuffer and DOSContext.RecvBufferSize, respectively.

If the data was received multicast, DOSContext.Flags must be ORed with DOSCONTEXT_FLAG_MULTICAST;

DOS_Process must be called.

core-c-cos Version 7.0.1 Build 0
2018-02-08