OpenDOF Project
DTLServerConfig DTLServerConfig_Create ( uint32  configSize,
const void *  config,
DTLTransport  transport,
DTLServerConfig_Destroyer  destroyer 
)

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

Server configuration is unique to a transport, and is normally created by the transport. It is opaque to the DTLServerConfig, 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 DTLServerConfig_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 DTLServerConfig, 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