|
|
|
@ -46,13 +46,29 @@ extern WF_API void wf_server_dispose(
|
|
|
|
|
/// This function must be invoked in a loop while the server is running. It
|
|
|
|
|
/// makes the server wait for the next event and processes it.
|
|
|
|
|
///
|
|
|
|
|
/// \note timeout_ms is no longer used
|
|
|
|
|
///
|
|
|
|
|
/// \param server pointer to server
|
|
|
|
|
/// \param timeout_ms timeout in milliseconds.
|
|
|
|
|
/// \param timeout_ms unused; set to 0; used for backward compatibility
|
|
|
|
|
///
|
|
|
|
|
/// \see wf_server_interrupt
|
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
extern WF_API void wf_server_service(
|
|
|
|
|
struct wf_server * server,
|
|
|
|
|
int timeout_ms);
|
|
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
/// \brief Interrupts wf_server_service
|
|
|
|
|
///
|
|
|
|
|
/// This function can be used from another thread.
|
|
|
|
|
///
|
|
|
|
|
/// \param server pointer to server
|
|
|
|
|
///
|
|
|
|
|
/// \see wf_server_service
|
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
extern WF_API void wf_server_interrupt(
|
|
|
|
|
struct wf_server * server);
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|