DOKK / manpages / debian 11 / libixp-dev / ixp_serverloop.3.en
IXP_SERVERLOOP(3) Library Functions Manual IXP_SERVERLOOP(3)

ixp_serverloop, IxpServer

#include <ixp.h>
int ixp_serverloop(IxpServer *srv);
typedef struct IxpServer IxpServer;
struct IxpServer {

IxpConn* conn;
IxpMutex lk;
IxpTimer* timer;
void (*preselect)(IxpServer*);
void* aux;
int running;
int maxfd;
fd_set rd; }

Enters the main loop of the server. Exits when srv->running becomes false, or when select(2) returns an error other than EINTR.

Returns 0 when the loop exits normally, and 1 when it exits on error. errno(3) or the return value of ixp_errbuf(3) may be inspected.

ixp_listen(3), ixp_settimer(3)

2012 Dec libixp Manual