From abef27c309c3e3bc607ab3fd44ef4479290911f7 Mon Sep 17 00:00:00 2001 From: Othmar Gsenger Date: Thu, 28 Feb 2008 15:16:46 +0000 Subject: added joobla template --- networkAddress.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'networkAddress.h') diff --git a/networkAddress.h b/networkAddress.h index 1192fb3..ccc0750 100644 --- a/networkAddress.h +++ b/networkAddress.h @@ -30,6 +30,8 @@ #ifndef _NETWORK_ADDRESS_H #define _NETWORK_ADDRESS_H +#include +#include #include "threadUtils.hpp" #include "datatypes.h" @@ -72,6 +74,15 @@ protected: network_address_type_t network_address_type_; private: NetworkAddress operator=(const NetworkAddress &s); + friend class boost::serialization::access; + template + void serialize(Archive & ar, const unsigned int version) + { + ar & network_address_type_; + ar & ipv4_address_; + ar & ipv6_address_; + ar & ethernet_address_; + } }; #endif -- cgit v1.2.3