aboutsummaryrefslogtreecommitdiffstats
path: root/udp514-journal.h
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2018-01-08 13:30:44 +0100
committerGravatar Christian Hesse <mail@eworm.de>2018-01-08 13:30:44 +0100
commit54378a355c31bf2e05fa90100ea3df6fc3ad56a1 (patch)
tree9cb21d137c073261164c1e14d746550c1521cc09 /udp514-journal.h
downloadudp514-journal-54378a355c31bf2e05fa90100ea3df6fc3ad56a1.tar.gz
udp514-journal-54378a355c31bf2e05fa90100ea3df6fc3ad56a1.tar.zst
initial commit0.0.1
Diffstat (limited to 'udp514-journal.h')
-rw-r--r--udp514-journal.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/udp514-journal.h b/udp514-journal.h
new file mode 100644
index 0000000..2767e1c
--- /dev/null
+++ b/udp514-journal.h
@@ -0,0 +1,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 */