summaryrefslogtreecommitdiff
path: root/buffer.h
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2007-12-07 14:51:53 +0000
committerOthmar Gsenger <otti@anytun.org>2007-12-07 14:51:53 +0000
commitebc305b6a49d24f8bcf05ed10efac42c4398bd5b (patch)
treed7e22e6353c568da249c5b511dea31536a6bebd8 /buffer.h
parentsplit parameters to global params and connection params (moved to connection ... (diff)
serialisation of buffer und connection param
Diffstat (limited to 'buffer.h')
-rw-r--r--buffer.h11
1 files changed, 10 insertions, 1 deletions
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<class Archive>
+ void serialize(Archive & ar, const unsigned int version);
};
#endif