SWOC System
Server Wait On Clients System.
comms.c File Reference

Comms functions associated with the swocserverd daemon. More...

#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/epoll.h>
#include <syslog.h>
#include <unistd.h>
#include "internal.h"
#include <bstree.h>
#include <libswoccommon.h>
#include <mge-errno.h>
#include <mgebuffer.h>
#include <mgemessage.h>
Include dependency graph for comms.c:

Macros

#define _Bool   signed char
 
#define bool   _Bool
 
#define false   0
 
#define true   1
 
#define __bool_true_false_are_defined   1
 

Functions

int prepare_sockets (void)
 Prepare all sockets. More...
 
int process_comms (void)
 Wait and then process communications. More...
 

Detailed Description

Comms functions associated with the swocserverd daemon.

Author
Copyright (C) 2017-2019 Mark Grant

Released under the GPLv3 only.
SPDX-License-Identifier: GPL-3.0

Version
v1.0.17 ==== 08/11/2019

Macro Definition Documentation

◆ __bool_true_false_are_defined

#define __bool_true_false_are_defined   1

◆ _Bool

#define _Bool   signed char

◆ bool

#define bool   _Bool

◆ false

#define false   0

◆ true

#define true   1

Function Documentation

◆ prepare_sockets()

int prepare_sockets ( void  )

Prepare all sockets.

On error mge_errno will be set.

Returns
0 on success, non-zero on failure.

◆ process_comms()

int process_comms ( void  )

Wait and then process communications.

On error mge_errno will be set.

Returns
0 on success, non-zero on failure.