summaryrefslogtreecommitdiff
path: root/buffer.h
diff options
context:
space:
mode:
authorErwin Nindl <nine@wirdorange.org>2007-09-12 12:14:11 +0000
committerErwin Nindl <nine@wirdorange.org>2007-09-12 12:14:11 +0000
commite340011d211618884ab85e1245c4b2f2e175c48e (patch)
tree91cb6957c89e2b6188e8f140d41409569c7cc187 /buffer.h
parentoverloaded std::ostream& operator<< for Buffer (diff)
removed overloaded std::ostream& << operator because of problems with stdc++ library
Diffstat (limited to 'buffer.h')
-rw-r--r--buffer.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/buffer.h b/buffer.h
index fc9d78b..0506e98 100644
--- a/buffer.h
+++ b/buffer.h
@@ -33,8 +33,6 @@
#include "datatypes.h"
-#include <ostream>
-
class TunDevice;
class UDPPacketSource;
@@ -54,7 +52,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);
+ void printHexDump() const;
protected:
operator u_int8_t*(); // just for write/read tun and packetSource
@@ -65,6 +63,7 @@ protected:
u_int8_t *buf_;
u_int32_t length_;
+
};
#endif