diff options
author | Othmar Gsenger <otti@anytun.org> | 2008-02-28 23:50:27 +0000 |
---|---|---|
committer | Othmar Gsenger <otti@anytun.org> | 2008-02-28 23:50:27 +0000 |
commit | a5dc62f2557f8eb07da9a485e2ce7d083c4ec558 (patch) | |
tree | 122d7ea70eeaf8c36023f81d9069278d446c00e2 /networkPrefix.h | |
parent | anyrtpproxy should work now (diff) |
fixed network prefix serialization
Diffstat (limited to 'networkPrefix.h')
-rw-r--r-- | networkPrefix.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/networkPrefix.h b/networkPrefix.h index d5316bd..c4b589c 100644 --- a/networkPrefix.h +++ b/networkPrefix.h @@ -33,6 +33,8 @@ #include "threadUtils.hpp" #include "datatypes.h" +#include <boost/archive/text_oarchive.hpp> +#include <boost/archive/text_iarchive.hpp> #include "networkAddress.h" @@ -47,6 +49,14 @@ public: private: uint8_t length_; + friend class boost::serialization::access; + template<class Archive> + void serialize(Archive & ar, const unsigned int version) + { + ar & length_; + ar & boost::serialization::base_object<NetworkAddress>(*this); + }; + }; #endif |