diff options
author | Erwin Nindl <nine@wirdorange.org> | 2007-12-11 13:53:03 +0000 |
---|---|---|
committer | Erwin Nindl <nine@wirdorange.org> | 2007-12-11 13:53:03 +0000 |
commit | b49e5993550f6c762b03a8de70ff7bf70a3ad011 (patch) | |
tree | 51d5d3d4802dc47c9b82ff1a2577a2042947e3c3 /buffer.h | |
parent | debuging sync buffer (diff) |
added pretty buffer print
Diffstat (limited to 'buffer.h')
-rw-r--r-- | buffer.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -32,6 +32,7 @@ #define _BUFFER_H_ #include "datatypes.h" +#include <string> class TunDevice; class UDPPacketSource; @@ -58,7 +59,7 @@ public: u_int8_t* getBuf(); u_int8_t& operator[](u_int32_t index); u_int8_t operator[](u_int32_t index) const; - void printHexDump() const; + std::string getHexDump() const; operator u_int8_t*(); // just for write/read tun and packetSource protected: |