Server Wait On Clients System - API Documentation
v1.6.4
Server Wait On Clients System.
|
To parse and validate the config file. More...
#include <ctype.h>
#include <errno.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <syslog.h>
#include <configmake.h>
#include <libmgec/mge-errno.h>
#include <libmgesysutils/mge-configfile.h>
#include <swoc/libswoccommon.h>
Functions | |
static int | validateconfigfileparams (const struct confsection *) |
static int | validatepollint (const struct confsection *) |
static int | validatessh (const struct confsection *ps) |
static int | validateserver (const struct confsection *) |
static int | validatesrvportno (const struct confsection *) |
static int | validatesshportno (const struct confsection *) |
static int | validatesshuser (const struct confsection *ps) |
int | swcom_validate_config (void) |
Parse and validate the config file. More... | |
Variables | |
int | pollint |
Polling interval. More... | |
int | ssh |
Use SSH false == 0, true == 1. More... | |
char | server [_POSIX_HOST_NAME_MAX] |
Server name. More... | |
int | srvportno |
Server port number. More... | |
int | sshportno |
Local port to use if using SSH. More... | |
char | sshuser [_POSIX_LOGIN_NAME_MAX] |
Server username for SSH. More... | |
To parse and validate the config file.
Used for swocserver and swocclient not swocserverd.
Released under the GPLv3 only.
SPDX-License-Identifier: GPL-3.0-only
int swcom_validate_config | ( | void | ) |
Parse and validate the config file.
On error mge_errno is set.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
int pollint |
Polling interval.
char server[_POSIX_HOST_NAME_MAX] |
Server name.
int srvportno |
Server port number.
int ssh |
Use SSH false == 0, true == 1.
int sshportno |
Local port to use if using SSH.
char sshuser[_POSIX_LOGIN_NAME_MAX] |
Server username for SSH.