summaryrefslogtreecommitdiff
path: root/src/network/socket_handler.hpp
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2014-02-08 07:52:22 +0100
committerFlorent Le Coz <louiz@louiz.org>2014-02-08 07:52:22 +0100
commitc8b41d5e350354881caa933ab363a2e90f991524 (patch)
tree68f87c18618b63ce1750389b13088d6b1b0f5849 /src/network/socket_handler.hpp
parentde7b3503a47ea7d5a6177359f6c799c2dd5e586e (diff)
downloadbiboumi-c8b41d5e350354881caa933ab363a2e90f991524.tar.gz
biboumi-c8b41d5e350354881caa933ab363a2e90f991524.tar.bz2
biboumi-c8b41d5e350354881caa933ab363a2e90f991524.tar.xz
biboumi-c8b41d5e350354881caa933ab363a2e90f991524.zip
Be verbose about IRC server connection failures, and handle them properly
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.
*/