diff options
author | Florent Le Coz <louiz@louiz.org> | 2014-02-08 07:52:22 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2014-02-08 07:52:22 +0100 |
commit | c8b41d5e350354881caa933ab363a2e90f991524 (patch) | |
tree | 68f87c18618b63ce1750389b13088d6b1b0f5849 /src/network/socket_handler.hpp | |
parent | de7b3503a47ea7d5a6177359f6c799c2dd5e586e (diff) | |
download | biboumi-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.hpp | 3 |
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. */ |