From ebc305b6a49d24f8bcf05ed10efac42c4398bd5b Mon Sep 17 00:00:00 2001 From: Othmar Gsenger Date: Fri, 7 Dec 2007 14:51:53 +0000 Subject: serialisation of buffer und connection param --- buffer.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'buffer.h') diff --git a/buffer.h b/buffer.h index 37bbc29..85f539b 100644 --- a/buffer.h +++ b/buffer.h @@ -36,6 +36,12 @@ class TunDevice; class UDPPacketSource; +namespace boost { + namespace serialization { + class access; + } +} + class Buffer { public: @@ -70,7 +76,10 @@ protected: u_int8_t *buf_; u_int32_t length_; - +private: + friend class boost::serialization::access; + template + void serialize(Archive & ar, const unsigned int version); }; #endif -- cgit v1.2.3