Prosody SNTP Client: API: sm_sntp_get_event

Prototype Definition

int sm_sntp_get_event(struct sm_sntp_event_parms *eventp)

Parameters

*eventp
a structure of the following type:
typedef struct sm_sntp_event_parms {
	tSMSNTPId sntp;						/* in */
	tSMEventId event;					/* out */
} SM_SNTP_EVENT_PARMS;

Description

the event will be signalled when a status change occurs on the SNTP client.

Fields

sntp
The SNTP client.
event
The event identifier

Returns

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


This function is part of the Prosody SNTP Client API.