int sm_dtlsrx_create(struct sm_dtlsrx_create_parms *dtlsrxp)
typedef struct sm_dtlsrx_create_parms { tSMDTLSrxId dtlsrx; /* out */ tSMModuleId module; /* in */ } SM_DTLSRX_CREATE_PARMS;
Allocates, on a specific module, a new DTLS[rx] to process incoming DTLS packets. If the call completes successfully, the parameter dtlsrx will be set to the identifier for that dtlsrx.
Requires the module dtlsrx to have been downloaded.
0 if call completed successfully, otherwise a standard error such as:
This function is part of the Prosody DTLS processing API.