From 8dcc3682dab0d4ed77700f4d30cecc31898adeb8 Mon Sep 17 00:00:00 2001 From: Erwin Nindl Date: Wed, 12 Sep 2007 11:21:31 +0000 Subject: overloaded std::ostream& operator<< for Buffer --- buffer.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'buffer.h') 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 + 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 -- cgit v1.2.3