MGE System Utility Library - Full Internal Documentation v1.6.0
Library of system utility functions.
mge-remsyslog.h File Reference

Send message to remote syslog header file. More...

#include <libmgec/mge-portability.h>
Include dependency graph for mge-remsyslog.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

BEGIN_C_DECLS int sndremsyslogmsg (const char *hostname, const char *prog_name, const char *message)
 Send message to remote syslog server. More...
 

Detailed Description

Send message to remote syslog header file.

Header file for sending a message to a remote syslog server in the libmgesysutils shared library.

Author
Copyright (C) 2015-2019, 2021, 2022 Mark Grant

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

Version
v1.0.10 ==== 15/09/2022

Function Documentation

◆ sndremsyslogmsg()

BEGIN_C_DECLS int sndremsyslogmsg ( const char *  hostname,
const char *  prog_name,
const char *  message 
)

Send message to remote syslog server.

On error mge_errno will be set.

Parameters
hostnameDestination machine.
prog_nameSource program name.
messageThe message to send.
Returns
0 on success, -ve mge_errno on error.