SIMPLE SOLUTIONS

IXPSERVER(3) - man page online | library functions

Chapter
2012 Dec
IXP_SERVERLOOP(3)                    Library Functions Manual                   IXP_SERVERLOOP(3)

NAME

ixp_serverloop, IxpServer

SYNOPSIS

#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; }

DESCRIPTION

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

RETURN VALUE

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.

SEE ALSO

ixp_listen(3), ixp_settimer(3)
libixp Manual 2012 Dec IXP_SERVERLOOP(3)
This manual Reference Other manuals
IxpServer(3) referred by ixp_hangup(3) | ixp_server_close(3)
refer to errno(3) | ixp_errbuf(3) | ixp_listen(3) | ixp_serverloop(3) | ixp_settimer(3) | select(2)