diff options
Diffstat (limited to 'buffer.h')
-rw-r--r-- | buffer.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |