diff options
author | Othmar Gsenger <otti@anytun.org> | 2008-02-28 15:16:46 +0000 |
---|---|---|
committer | Othmar Gsenger <otti@anytun.org> | 2008-02-28 15:16:46 +0000 |
commit | abef27c309c3e3bc607ab3fd44ef4479290911f7 (patch) | |
tree | e75fdbbb6a18b49fd116fcf8fd884bb2a060f3b9 /networkAddress.h | |
parent | more edits on dokumentation.odt (diff) |
added joobla template
Diffstat (limited to 'networkAddress.h')
-rw-r--r-- | networkAddress.h | 11 |
1 files changed, 11 insertions, 0 deletions
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 <boost/archive/text_oarchive.hpp> +#include <boost/archive/text_iarchive.hpp> #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<class Archive> + void serialize(Archive & ar, const unsigned int version) + { + ar & network_address_type_; + ar & ipv4_address_; + ar & ipv6_address_; + ar & ethernet_address_; + } }; #endif |