summaryrefslogtreecommitdiff
path: root/networkPrefix.h
diff options
context:
space:
mode:
Diffstat (limited to 'networkPrefix.h')
-rw-r--r--networkPrefix.h10
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