summaryrefslogtreecommitdiff
path: root/src/connectionParam.h
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2008-11-24 22:13:20 +0000
committerOthmar Gsenger <otti@anytun.org>2008-11-24 22:13:20 +0000
commitc27c83c05f0bc055cbde66479a9f554348784845 (patch)
treec140f8cc9e347c6d7a927a17b1d20b8fcaa99688 /src/connectionParam.h
parentswitched to endpoint @ anytun-config as well (diff)
fixed sync deletes connection param
Diffstat (limited to 'src/connectionParam.h')
-rw-r--r--src/connectionParam.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/connectionParam.h b/src/connectionParam.h
index 6e6427e..9748a18 100644
--- a/src/connectionParam.h
+++ b/src/connectionParam.h
@@ -38,6 +38,7 @@
#include "seqWindow.h"
#include "threadUtils.hpp"
#include "packetSource.h"
+#include "log.h"
#include <boost/archive/text_oarchive.hpp>
#include <boost/archive/text_iarchive.hpp>
@@ -68,9 +69,7 @@ private:
ar & seq_nr_;
ar & remote_host;
ar & remote_port;
- boost::asio::ip::address addr;
- addr.from_string(remote_host);
- boost::asio::ip::udp::endpoint endpoint(addr, remote_port);
+ boost::asio::ip::udp::endpoint endpoint(boost::asio::ip::address::from_string(remote_host), remote_port);
remote_end_ = endpoint;
}
};