OpenDOF Project
Data Fields
DTLTransport::DTLTransportFns_t Struct Reference

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

Data Fields

boolean(* Open )(DTLTransport transport, DTLConnectionConfig config, DOFAddress peer, DTLTransportHandler handler, DOFConnectionType type, void *context)
 Open a connection.
 
boolean(* Start )(DTLTransport transport, DTLServerConfig config, DOFAddress listenAddress, DTLTransportHandler handler, DOFServerType type, DTLServer relatedServer, void *context)
 Start a server.
 
uint32(* GetMaxSize )(DTLTransport transport, DOFConnectionType type)
 Get the Maximum Transmission Unit (MTU) size for the specified type of transmission.
 
uint32(* GetMinSize )(DTLTransport transport, DOFConnectionType type)
 Get the Minimum Transmission size for the specified type of transmission.
 
DOFAddressType(* GetAddressType )(DTLTransport transport, DOFAddress address)
 Get the type of the specified address.
 
boolean(* IsConnectionConfigEqual )(DTLTransport transport, uint32 size, const void *config1, const void *config2)
 Report if two Transport DTLConnectionConfigs are equal.
 
boolean(* IsServerConfigEqual )(DTLTransport transport, uint32 size, const void *config1, const void *config2)
 Report if two Transport DTLServerConfigs are equal.
 
int(* AddressCompare )(DTLTransport transport, uint32 size, const void *addr1, const void *addr2)
 Compares two transport addresses.
 
boolean(* AddressCopy )(DTLTransport transport, uint32 size, void *addr)
 This function is called after the library makes a shallow copy of a DOFAddress and its data.
 
void(* AddressDestroy )(DTLTransport transport, uint32 size, const void *addr)
 Destroyer function for an address.
 

Detailed Description

The DTLTransport 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