diff options
Diffstat (limited to 'connectionParam.cpp')
-rw-r--r-- | connectionParam.cpp | 12 |
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_; +} + |