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.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/network/socket_handler.hpp b/src/network/socket_handler.hpp
index ec63ea7..c27d44c 100644
--- a/src/network/socket_handler.hpp
+++ b/src/network/socket_handler.hpp
@@ -2,6 +2,7 @@
# define SOCKET_HANDLER_INCLUDED
#include <string>
+#include <utility>
typedef int socket_t;
@@ -21,7 +22,7 @@ public:
/**
* Connect to the remote server, and call on_connected() if this succeeds
*/
- bool connect(const std::string& address, const std::string& port);
+ std::pair<bool, std::string> connect(const std::string& address, const std::string& port);
/**
* Set the pointer to the given Poller, to communicate with it.
*/