summaryrefslogtreecommitdiff
path: root/buffer.h
diff options
context:
space:
mode:
authorErwin Nindl <nine@wirdorange.org>2007-09-12 11:21:31 +0000
committerErwin Nindl <nine@wirdorange.org>2007-09-12 11:21:31 +0000
commit8dcc3682dab0d4ed77700f4d30cecc31898adeb8 (patch)
tree9c61363f6a4aec5235cfc1798628effc14181dbe /buffer.h
parentseqwindow with 0 windows-size deactivates replay protection (diff)
overloaded std::ostream& operator<< for Buffer
Diffstat (limited to 'buffer.h')
-rw-r--r--buffer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/buffer.h b/buffer.h
index 2e3a75e..fc9d78b 100644
--- a/buffer.h
+++ b/buffer.h
@@ -33,6 +33,8 @@
#include "datatypes.h"
+#include <ostream>
+
class TunDevice;
class UDPPacketSource;
@@ -52,6 +54,7 @@ public:
u_int8_t* getBuf();
u_int8_t& operator[](u_int32_t index);
u_int8_t operator[](u_int32_t index) const;
+ friend std::ostream& operator<<(std::ostream& output, const Buffer &src);
protected:
operator u_int8_t*(); // just for write/read tun and packetSource