Support IPv6 connections

fix #2522
This commit is contained in:
Florent Le Coz
2014-05-27 01:06:45 +02:00
parent 5507adbe94
commit 23e8e32f84
2 changed files with 18 additions and 7 deletions
+3 -2
View File
@@ -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
*/