Server Wait On Clients System - API Documentation
v1.6.4
Server Wait On Clients System.
|
Server Wait On Clients server daemon. More...
#include <errno.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <syslog.h>
#include <unistd.h>
#include <configmake.h>
#include "internal.h"
#include <libmgec/libmgec.h>
#include <libmgec/mge-bstree.h>
#include <libmgec/mge-errno.h>
#include <swoc/cmdlineargs.h>
#include <swoc/signalhandle.h>
Macros | |
#define | _Bool signed char |
#define | bool _Bool |
#define | false 0 |
#define | true 1 |
#define | __bool_true_false_are_defined 1 |
Functions | |
static void | daemonise (void) |
static int | csscmp (const struct comm_spec *first, const struct comm_spec *last) |
int | main (int argc, char **argv) |
Program entry point. More... | |
Variables | |
int | swsd_err |
swoc daemon error number. More... | |
char | client [_POSIX_HOST_NAME_MAX] |
Client name. More... | |
int | debug |
Debug - 0 false, 1 true. More... | |
int | end |
End pending. More... | |
int | cursockfd |
Socket file descriptor in use. More... | |
struct comm_spec * | port_spec |
Port / socket config mappings. More... | |
bool | srv_blocked |
Server is blocked? More... | |
struct bstree * | cli_locks |
Clients and locks. More... | |
struct bstree * | cli_blocked |
Blocked client list. More... | |
struct bstree * | port_sock |
Port / socket actual mappings. More... | |
Server Wait On Clients server daemon.
Daemon to enable a server to manage client locks and wait on the removal of those locks prior to further server processing.
Released under the GPLv3 only.
SPDX-License-Identifier: GPL-3.0-only
#define __bool_true_false_are_defined 1 |
#define _Bool signed char |
#define bool _Bool |
#define false 0 |
#define true 1 |
|
static |
|
static |
int main | ( | int | argc, |
char ** | argv | ||
) |
Program entry point.
argc | Standard CLA argc. |
argv | Standard CLA argv. |
struct bstree* cli_blocked |
Blocked client list.
struct bstree* cli_locks |
Clients and locks.
char client[_POSIX_HOST_NAME_MAX] |
Client name.
int cursockfd |
Socket file descriptor in use.
int debug |
Debug - 0 false, 1 true.
int end |
End pending.
struct bstree* port_sock |
Port / socket actual mappings.
struct comm_spec* port_spec |
Port / socket config mappings.
bool srv_blocked |
Server is blocked?
int swsd_err |
swoc daemon error number.