Add a TimedEvent to cancel the connection to a server after 5 seconds
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user