Prosody DTLS processing: API: sm_dtlstx_config_notify

Prototype Definition

int sm_dtlstx_config_notify(struct sm_dtlstx_config_notify_parms *configp)

Parameters

*configp
a structure of the following type:
typedef struct sm_dtlstx_config_notify_parms {
	tSMDTLStxId dtlstx;					/* in */
	tSM_UT32 packet_length;					/* in */
	tSM_INT no_capacity_event;				/* in */
} SM_DTLSTX_CONFIG_NOTIFY_PARMS;

Description

Configures when a DTLS[tx] reports capacity for another packet to be queued. It also configures whether the event should be set when there is capacity for another packet.

When no_capacity_event is zero, the event is set when sm_dtlstx_status() will report kSMDTLStxStatusHasCapacity. If it is non-zero, the event will not be set unless a different status will be reported.

Fields

dtlstx
The DTLS[tx] to configure.
packet_length
The amount of capacity that must be available before sm_dtlstx_status() reports kSMDTLStxStatusHasCapacity.
no_capacity_event
An indicator of whether the DTLS[tx] event should be set when there is space for another packet to be queued.

Returns

0 if call completed successfully, otherwise a standard error such as:


This function is part of the Prosody DTLS processing API.