aboutsummaryrefslogtreecommitdiffstats
path: root/udp514-journal.h
blob: 2767e1c9c24b8a126d4f44192317a40771934ac1 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
 * (C) 2018 by Christian Hesse <mail@eworm.de>
 *
 * This software may be used and distributed according to the terms
 * of the GNU General Public License, incorporated herein by reference.
 */

#ifndef _UDP514_JOURNAL_H
#define _UDP514_JOURNAL_H

#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include <time.h>

#include <systemd/sd-journal.h>
#include <systemd/sd-daemon.h>

#define STR_(x) #x
#define STR(x) STR_(x)

#define LOCAL_SERVER_PORT 514
#define LOCAL_SERVER_PORT_STR STR(LOCAL_SERVER_PORT)
#define BUFFER_SIZE 1024

#endif /* _UDP514_JOURNAL_H */