summaryrefslogtreecommitdiff
path: root/connectionParam.cpp
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 /connectionParam.cpp
parentsplit parameters to global params and connection params (moved to connection ... (diff)
serialisation of buffer und connection param
Diffstat (limited to 'connectionParam.cpp')
-rw-r--r--connectionParam.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/connectionParam.cpp b/connectionParam.cpp
index d7dd3a4..4c1175a 100644
--- a/connectionParam.cpp
+++ b/connectionParam.cpp
@@ -29,7 +29,19 @@
*/
#include "connectionParam.h"
+#include <boost/archive/text_oarchive.hpp>
+#include <boost/archive/text_iarchive.hpp>
ConnectionParam::ConnectionParam(KeyDerivation& kd, SeqWindow& seq, std::string remote_host, u_int16_t remote_port) : kd_(kd),seq_(seq),remote_host_(remote_host), remote_port_(remote_port)
{
}
+
+template<class Archive>
+void ConnectionParam::serialize(Archive & ar, const unsigned int version)
+{
+ ar & kd_;
+ ar & seq_;
+ ar & remote_host_;
+ ar & remote_port_;
+}
+