Prosody generic: API: smd_ev_wait

Prototype Definition

int smd_ev_wait(tSMEventId eventId)

Parameters

eventId

Description

Wait until given event occurs.

Application developers may prefer to use the underlying operating system calls instead of this call, allowing them to exploit event wait timeouts, waiting for multiple events etc. The use of events on each operating system is described in Prosody events.

Returns

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


This function is part of the Prosody generic API.