Be verbose about IRC server connection failures, and handle them properly
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user