Crinit -- Configurable Rootfs Init
notiserv.h File Reference

(2023-08-02, commit: 9434b31)

Header related to the notification and service interface. More...

#include "taskdb.h"
Include dependency graph for notiserv.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int crinitStartInterfaceServer (crinitTaskDB_t *ctx, const char *sockfile)
 

Detailed Description

Header related to the notification and service interface.

Function Documentation

◆ crinitStartInterfaceServer()

int crinitStartInterfaceServer ( crinitTaskDB_t ctx,
const char *  sockfile 
)

Starts the Notification and Service interface socket server.

Will create the AF_UNIX socket for clients to connect to and spawn a number of worker threads to service incoming connections (see notiserv.c and thrpool.h).

Parameters
ctxPointer to the crinitTaskDB_t which the Server should use for incoming requests.
sockfilePath where to create the AF_UNIX socket file.
Returns
0 on success, -1 on error