Prosody DTLS processing: API: sm_dtlstx_send_packet

Prototype Definition

int sm_dtlstx_send_packet(struct sm_dtlstx_send_packet_parms *packetp)

Parameters

*packetp
a structure of the following type:
typedef struct sm_dtlstx_send_packet_parms {
	tSMDTLStxId dtlstx;					/* in */
	char *data;						/* in */
	tSM_INT packet_length;					/* in */
} SM_DTLSTX_SEND_PACKET_PARMS;

Description

Sends a packet using a DTLS[tx].

Requires the module dtlstx to have been downloaded.

Fields

dtlstx
The DTLS[tx] that will send the packet
data
A pointer to the packet to be sent.
packet_length
The length of the packet to be sent.

Returns

0 if call completed successfully, otherwise a standard error.


This function is part of the Prosody DTLS processing API.