summaryrefslogtreecommitdiff
path: root/src/network/socket_handler.hpp
diff options
context:
space:
mode:
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
*/