Add a TimedEvent to cancel the connection to a server after 5 seconds

This commit is contained in:
Florent Le Coz
2014-06-08 15:13:08 +02:00
parent 349dc06e91
commit 8b30e312bb
2 changed files with 23 additions and 0 deletions
+5
View File
@@ -85,6 +85,11 @@ public:
* Close the connection, remove us from the poller
*/
void close();
/**
* Called by a TimedEvent, when the connection did not succeed or fail
* after a given time.
*/
void on_connection_timeout();
/**
* Called when the connection is successful.
*/