summaryrefslogtreecommitdiff
path: root/src/network/socket_handler.hpp
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2014-05-27 01:05:51 +0200
committerFlorent Le Coz <louiz@louiz.org>2014-05-27 01:06:45 +0200
commit23e8e32f84c8d7f8bb947a1ab484a81890b40371 (patch)
treed9ecdba5afc9ea0b2986ea5b6ac8b62488250954 /src/network/socket_handler.hpp
parent5507adbe9473f4b41e52d16498f14850773e5e45 (diff)
downloadbiboumi-23e8e32f84c8d7f8bb947a1ab484a81890b40371.tar.gz
biboumi-23e8e32f84c8d7f8bb947a1ab484a81890b40371.tar.bz2
biboumi-23e8e32f84c8d7f8bb947a1ab484a81890b40371.tar.xz
biboumi-23e8e32f84c8d7f8bb947a1ab484a81890b40371.zip
Support IPv6 connections
fix #2522
Diffstat (limited to 'src/network/socket_handler.hpp')
-rw-r--r--src/network/socket_handler.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/network/socket_handler.hpp b/src/network/socket_handler.hpp
index 1e31dcd..e6a36bf 100644
--- a/src/network/socket_handler.hpp
+++ b/src/network/socket_handler.hpp
@@ -26,9 +26,10 @@ public:
explicit SocketHandler(std::shared_ptr<Poller> poller);
virtual ~SocketHandler() {}
/**
- * (re-)Initialize the socket
+ * Initialize the socket with the parameters contained in the given
+ * addrinfo structure.
*/
- void init_socket();
+ void init_socket(const struct addrinfo* rp);
/**
* Connect to the remote server, and call on_connected() if this succeeds
*/