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
-
configSize | Size of the configuration data. |
config | The configuration data. This may be NULL if configSize is 0. |
transport | The transport associated with the address. This must not be NULL. |
destroyer | The 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.