YAZ  5.23.1
Functions
zoom-socket.c File Reference

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...
 

Detailed Description

Implements ZOOM C socket interface.

Definition in file zoom-socket.c.

Function Documentation

ZOOM_event ( int  no,
ZOOM_connection cs 
)

wait for events on connection(s) (BLOCKING)

Parameters
nonumber of connections (size of cs)
csconnection array
Return values
0no event was fired
>0event 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 
)