OpenDOF Project
DTLConnectionConfig DTLConnectionConfig_Create ( uint32  configSize,
const void *  config,
DTLTransport  transport,
DTLConnectionConfig_Destroyer  destroyer 
)

Create a connection configuration from a transport configuration and the transport.

Connection configuration is unique to a transport, and is normally created by the transport. It is opaque to the DTLConnectionConfig, and no assumptions can or should be made about its type or contents, except by its associated transport.

Resource Management:
This function allocates resources that must later be freed by calling DTLConnectionConfig_Destroy.
Parameters
configSizeSize of the configuration data.
configThe configuration data. This may be NULL if configSize is 0.
transportThe transport associated with the address. This must not be NULL.
destroyerThe function to call when the configuration is destroyed. This may be NULL if there is no need for this notification.
Returns
The DTLConnectionConfig, or NULL if one could not be created, or invalid parameters were used.
core-c-dof-oal Version 8.0.1 Build 0
2018-01-22