|
Server Wait On Clients System - API Documentation v1.8.3
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. | |
Variables | |
| int | swsd_err |
| swoc daemon error number. | |
| char | client [_POSIX_HOST_NAME_MAX] |
| Client name. | |
| int | debug |
| Debug - 0 false, 1 true. | |
| int | end |
| End pending. | |
| int | cursockfd |
| Socket file descriptor in use. | |
| struct comm_spec * | port_spec |
| Port / socket config mappings. | |
| bool | srv_blocked |
| Server is blocked? | |
| struct bstree * | cli_locks |
| Clients and locks. | |
| struct bstree * | cli_blocked |
| Blocked client list. | |
| struct bstree * | port_sock |
| Port / socket actual mappings. | |
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.