The Transport Handler interface structure, allowing a transport to communicate with the OAL. More...
Data Fields | |
boolean(* | Opened )(DTLTransportHandler handler, DTLConnection connection) |
Report a connection that is now opened. | |
void(* | Closed )(DTLTransportHandler handler, DTLConnection connection, DOFException except) |
Report a connection that is now closed. | |
boolean(* | Started )(DTLTransportHandler handler, DTLServer server) |
Report a Server that is now started. | |
void(* | Stopped )(DTLTransportHandler handler, DTLServer server, DOFException except) |
Report a Server that is now stopped. | |
boolean(* | Received_Connection )(DTLTransportHandler handler, DTLConnection connection, uint32 size, uint8 *packet, DOFAddress address, DOFAddressType type) |
Report a new packet received on a Connection. | |
boolean(* | Received_Server )(DTLTransportHandler handler, DTLServer server, uint32 size, uint8 *packet, DOFAddress address, DOFAddressType type) |
Report a new packet received by a server. | |
int32(* | GetReceiveSize )(DTLTransportHandler handler, const uint8 *buffer, uint32 offset, uint32 length) |
Determine the total packet length based on received data in a buffer. | |
uint32(* | GetMaxInitialReceiveSize )(DTLTransportHandler handler) |
Get maximum initial receive size. | |
The Transport Handler interface structure, allowing a transport to communicate with the OAL.
The Transport Handler interface.
This interface is implemented by the C OAL.
This interface is called by a transport implementation to notify the OAL of opened connections, started servers, and received packets.
Defined as a pointer to the DTLTransportHandler_t structure. Refer to the structure for more information.