aboutsummaryrefslogtreecommitdiffstats
path: root/src/inputs/TcpLog.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2013-12-22 16:11:43 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2013-12-24 18:09:27 +0100
commitb0183733ef4c6f08ef8c7b73155268e54ca3f152 (patch)
tree5aa855d5dc36badbf1b2268bef79db0257146853 /src/inputs/TcpLog.h
parent7094945ef7ecb8a918dfe3b4619bdc6f239cbb50 (diff)
downloaddabmux-b0183733ef4c6f08ef8c7b73155268e54ca3f152.tar.gz
dabmux-b0183733ef4c6f08ef8c7b73155268e54ca3f152.tar.bz2
dabmux-b0183733ef4c6f08ef8c7b73155268e54ca3f152.zip
InputBuffered know how to split frames
Diffstat (limited to 'src/inputs/TcpLog.h')
-rw-r--r--src/inputs/TcpLog.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/inputs/TcpLog.h b/src/inputs/TcpLog.h
new file mode 100644
index 0000000..65cd41b
--- /dev/null
+++ b/src/inputs/TcpLog.h
@@ -0,0 +1,23 @@
+#ifndef _T_
+#define _T_
+
+#include <cstdio>
+
+using namespace std;
+
+class TcpLog
+{
+ public:
+ const static int WARNING=1;
+ const static int ERR=2;
+ const static int NOTICE=3;
+ const static int CRIT=4;
+
+ void print(const int priority, const char *format, ...)
+ {
+ fprintf(stderr, "%s\n", format);
+ }
+};
+
+#endif
+