OpenDOF Project
Data Fields
DTLTransportHandler::DTLTransportHandlerFns_t Struct Reference

The DTLTransportHandler interface function structure, containing a list of function pointers that implement the interface. 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.
 

Detailed Description

The DTLTransportHandler interface function structure, containing a list of function pointers that implement the interface.

It has the same role as a vtable in C++.

core-c-dof-oal Version 7.1.7 Build 0
2017-10-31