ZOOM_connection_process(ZOOM_connection c);
+/** \brief executes non-blocking tasks for connection
+ \param c connection
+ \retval 0 no task was executed
+ \retval 1 task was executed (but probably not completed)
+
+ This function, unlike, ZOOM_connection_process, does not try to
+ return any events (and remove them). But events may be generated
+ from it. These are saved and may later be retrieved with
+ ZOOM_connection_process and ZOOM_connection_last_event .
+*/
+ZOOM_API(int)
+ZOOM_connection_exec_task(ZOOM_connection c);
+
+
/** \brief get socket fd for ZOOM connection
\param c connection
\retval -1 no socket assigned for connection
ZOOM_connection_fire_event_socket(ZOOM_connection c, int mask);
-
/** \brief peek at next event
\param c connection
\returns ZOOM_EVENT_NONE (for no events in queue), ZOOM_EVENT_CONNECT, ..
}
}
-static int ZOOM_connection_exec_task(ZOOM_connection c);
-
void ZOOM_connection_remove_tasks(ZOOM_connection c)
{
while (c->tasks)
ZOOM_options_setl(p->options, key, val, len);
}
-static int ZOOM_connection_exec_task(ZOOM_connection c)
+ZOOM_API(int)
+ ZOOM_connection_exec_task(ZOOM_connection c)
{
ZOOM_task task = c->tasks;
zoom_ret ret = zoom_complete;