Be verbose about IRC server connection failures, and handle them properly

This commit is contained in:
Florent Le Coz
2014-02-08 07:52:22 +01:00
parent de7b3503a4
commit c8b41d5e35
4 changed files with 20 additions and 11 deletions
+2 -1
View File
@@ -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.
*/