Prosody SNTP Client: API: sm_sntp_create

Prototype Definition

int sm_sntp_create(struct sm_sntp_create_parms *createp)

Parameters

*createp
a structure of the following type:
typedef struct sm_sntp_create_parms {
	tSMSNTPId sntp;						/* out */
	tSMModuleId module;					/* in */
	struct in_addr address;					/* in */
} SM_SNTP_CREATE_PARMS;

Description

Creates an SNTP Client.

Fields

sntp
The created SNTP client.
module
A value obtained from sm_open_module() Indicates the module on which the SNTP client is to be created.
address
The address on which the SNTP client listens for replies

Returns

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


This function is part of the Prosody SNTP Client API.