diff options
Diffstat (limited to 'src/syncBuffer.h')
-rw-r--r-- | src/syncBuffer.h | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/syncBuffer.h b/src/syncBuffer.h index a9aee4e..8723d70 100644 --- a/src/syncBuffer.h +++ b/src/syncBuffer.h @@ -11,7 +11,7 @@ * tunneling and relaying of packets of any protocol. * * - * Copyright (C) 2007-2009 Othmar Gsenger, Erwin Nindl, + * Copyright (C) 2007-2009 Othmar Gsenger, Erwin Nindl, * Christian Pointner <satp@wirdorange.org> * * This file is part of Anytun. @@ -43,23 +43,23 @@ class SyncBuffer : public Buffer { public: - SyncBuffer() : Buffer(){}; - SyncBuffer(u_int32_t length) : Buffer(length){}; - SyncBuffer(Buffer b): Buffer(b) {}; - SyncBuffer(u_int8_t* data, u_int32_t length): Buffer(data,length) {}; - SyncBuffer(const SyncBuffer & src) : Buffer(src) {}; + SyncBuffer() : Buffer() {}; + SyncBuffer(u_int32_t length) : Buffer(length) {}; + SyncBuffer(Buffer b): Buffer(b) {}; + SyncBuffer(u_int8_t* data, u_int32_t length): Buffer(data,length) {}; + SyncBuffer(const SyncBuffer& src) : Buffer(src) {}; private: -//TODO check if this is ok -// Mutex mutex_; - friend class boost::serialization::access; - template<class Archive> - void serialize(Archive & ar, const unsigned int version) - { -// Lock lock(mutex_); - ar & length_; - for(u_int32_t i = 0; i < length_; i++) - ar & (*this)[i]; - } + //TODO check if this is ok + // Mutex mutex_; + friend class boost::serialization::access; + template<class Archive> + void serialize(Archive& ar, const unsigned int version) { + // Lock lock(mutex_); + ar& length_; + for(u_int32_t i = 0; i < length_; i++) { + ar & (*this)[i]; + } + } }; #endif |