Send the reason of the connection close to the user

This commit is contained in:
Florent Le Coz
2014-07-15 15:39:25 +02:00
parent 4582f10797
commit 11a31db2d5
6 changed files with 21 additions and 17 deletions
+1 -1
View File
@@ -96,7 +96,7 @@ public:
/**
* Called when we detect a disconnection from the remote host.
*/
virtual void on_connection_close() = 0;
virtual void on_connection_close(const std::string& error) = 0;
/**
* Handle/consume (some of) the data received so far. The data to handle
* may be in the in_buf buffer, or somewhere else, depending on what