int sm_dtlsrx_get_packet(struct sm_dtlsrx_get_packet_parms *readp)
typedef struct sm_dtlsrx_get_packet_parms { tSMDTLSrxId dtlsrx; /* in */ char *data; /* in */ tSM_INT max_length; /* in */ tSM_INT packet_length; /* out */ } SM_DTLSRX_GET_PACKET_PARMS;
Attempt to read a packet from a DTLS[rx].
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.