diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2013-12-22 16:11:43 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2013-12-24 18:09:27 +0100 |
commit | b0183733ef4c6f08ef8c7b73155268e54ca3f152 (patch) | |
tree | 5aa855d5dc36badbf1b2268bef79db0257146853 /src/inputs/TcpLog.h | |
parent | 7094945ef7ecb8a918dfe3b4619bdc6f239cbb50 (diff) | |
download | dabmux-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.h | 23 |
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 + |