diff options
author | Florent Le Coz <louiz@louiz.org> | 2014-06-08 15:13:08 +0200 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2014-06-08 15:13:08 +0200 |
commit | 8b30e312bbc0728b527941d5b0a6d0f621025ed0 (patch) | |
tree | 95373b123e63ab8f35fe9e486e92c4288756d3df /src/network/socket_handler.hpp | |
parent | 349dc06e91bd1b944bd2a1770dba7b7a3a67ce61 (diff) | |
download | biboumi-8b30e312bbc0728b527941d5b0a6d0f621025ed0.tar.gz biboumi-8b30e312bbc0728b527941d5b0a6d0f621025ed0.tar.bz2 biboumi-8b30e312bbc0728b527941d5b0a6d0f621025ed0.tar.xz biboumi-8b30e312bbc0728b527941d5b0a6d0f621025ed0.zip |
Add a TimedEvent to cancel the connection to a server after 5 seconds
Diffstat (limited to 'src/network/socket_handler.hpp')
-rw-r--r-- | src/network/socket_handler.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/network/socket_handler.hpp b/src/network/socket_handler.hpp index 02311c4..95e38bd 100644 --- a/src/network/socket_handler.hpp +++ b/src/network/socket_handler.hpp @@ -86,6 +86,11 @@ public: */ 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. */ virtual void on_connected() = 0; |