YAZ
5.34.0
|
Implements ZOOM C socket interface. More...
#include <assert.h>
#include <string.h>
#include <errno.h>
#include <yaz/zoom.h>
#include <yaz/log.h>
#include <yaz/xmalloc.h>
#include <yaz/poll.h>
Go to the source code of this file.
Functions | |
ZOOM_event_sys_yaz_poll (int no, ZOOM_connection *cs) | |
ZOOM_event (int no, ZOOM_connection *cs) | |
wait for events on connection(s) (BLOCKING) More... | |
Implements ZOOM C socket interface.
Definition in file zoom-socket.c.
ZOOM_event | ( | int | no, |
ZOOM_connection * | cs | ||
) |
wait for events on connection(s) (BLOCKING)
no | number of connections (size of cs) |
cs | connection array |
0 | no event was fired |
>0 | event was fired for connection at (retval-1) |
blocking poll for events on a number of connections. Returns positive integer if event occurred ; zero if none occurred and no more events are pending. The positive integer specifies the connection for which the event occurred.
Definition at line 99 of file zoom-socket.c.
References ZOOM_event_nonblock(), and ZOOM_event_sys_yaz_poll().
Referenced by ZOOM_connection_connect(), ZOOM_connection_scan1(), ZOOM_connection_search(), ZOOM_package_send(), ZOOM_resultset_retrieve(), and ZOOM_resultset_sort1().
ZOOM_event_sys_yaz_poll | ( | int | no, |
ZOOM_connection * | cs | ||
) |
Definition at line 31 of file zoom-socket.c.
References yaz_poll_fd::client_data, yaz_poll_fd::fd, yaz_poll_fd::input_mask, mask, yaz_poll_fd::output_mask, xfree, xmalloc, yaz_poll(), yaz_poll_add, yaz_poll_except, yaz_poll_none, yaz_poll_read, yaz_poll_timeout, yaz_poll_write, ZOOM_connection_fire_event_socket(), ZOOM_connection_fire_event_timeout(), ZOOM_connection_get_mask(), ZOOM_connection_get_socket(), ZOOM_connection_get_timeout(), ZOOM_SELECT_EXCEPT, ZOOM_SELECT_READ, and ZOOM_SELECT_WRITE.
Referenced by ZOOM_event().