IxpServer(3)

IxpServer3

Part of ixp_serverloop(3).

Usage

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

Overview

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.

Releases

Unchanged in 4 releases since Debian 8 (Jessie).

  1. 8–11

From libixp-dev 0.6~20121202+hg148-5 in Debian 11 (Bullseye). Parsed by carta from the page's man source.