removed server timeout (breaking change)

pull/62/head
Falk Werner 5 years ago
parent 74c1c44655
commit 357ca12e65

@ -46,16 +46,12 @@ extern WF_API void wf_server_dispose(
/// This function must be invoked in a loop while the server is running. It /// 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. /// makes the server wait for the next event and processes it.
/// ///
/// \note timeout_ms is no longer used
///
/// \param server pointer to server /// \param server pointer to server
/// \param timeout_ms unused; set to 0; used for backward compatibility
/// ///
/// \see wf_server_interrupt /// \see wf_server_interrupt
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
extern WF_API void wf_server_service( extern WF_API void wf_server_service(
struct wf_server * server, struct wf_server * server);
int timeout_ms);
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
/// \brief Interrupts wf_server_service /// \brief Interrupts wf_server_service

@ -78,16 +78,12 @@ extern WFP_API void wfp_client_dispose(
/// This function must be invoked in a loop while the client is running. It /// This function must be invoked in a loop while the client is running. It
/// makes the server wait for the next event and processes it. /// makes the server wait for the next event and processes it.
/// ///
/// \note timeout is ignored
///
/// \param client pointer to client /// \param client pointer to client
/// \param timeout_ms unused; set to 0; for backward compatibilty
/// ///
/// \see wfp_client_interrupt /// \see wfp_client_interrupt
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
extern WFP_API void wfp_client_service( extern WFP_API void wfp_client_service(
struct wfp_client * client, struct wfp_client * client);
int timeout_ms);
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
/// \brief interrupt wfp_client_service /// \brief interrupt wfp_client_service

@ -23,8 +23,7 @@ void wf_server_dispose(
} }
void wf_server_service( void wf_server_service(
struct wf_server * server, struct wf_server * server)
int WF_UNUSED_PARAM(imeout_ms))
{ {
wf_impl_server_service(server); wf_impl_server_service(server);
} }

@ -231,8 +231,7 @@ void wfp_client_dispose(
} }
void wfp_client_service( void wfp_client_service(
struct wfp_client * client, struct wfp_client * client)
int WF_UNUSED_PARAM(timeout_ms))
{ {
wfp_impl_client_service(client); wfp_impl_client_service(client);
} }

@ -30,7 +30,7 @@ public:
wfp_client_connect(client, url); wfp_client_connect(client, url);
while (!wfp_impl_client_is_connected(client)) while (!wfp_impl_client_is_connected(client))
{ {
wfp_client_service(client, 100); wfp_client_service(client);
} }
thread = std::thread(Run, this); thread = std::thread(Run, this);
@ -65,7 +65,7 @@ private:
{ {
while (!context->IsShutdownRequested()) while (!context->IsShutdownRequested())
{ {
wfp_client_service(context->client, 100); wfp_client_service(context->client);
} }
} }

@ -70,7 +70,7 @@ public:
while (!wf_impl_server_is_operational(server)) while (!wf_impl_server_is_operational(server))
{ {
wf_server_service(server, 100); wf_server_service(server);
} }
thread = std::thread(Run, this); thread = std::thread(Run, this);
@ -104,7 +104,7 @@ private:
{ {
while (!context->IsShutdownRequested()) while (!context->IsShutdownRequested())
{ {
wf_server_service(context->server, 100); wf_server_service(context->server);
} }
} }

Loading…
Cancel
Save