diff options
Diffstat (limited to 'server/connection.h')
-rw-r--r-- | server/connection.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/server/connection.h b/server/connection.h index aba7734..b6a3cd3 100644 --- a/server/connection.h +++ b/server/connection.h @@ -13,10 +13,9 @@ class Connection : public ConnectionBase, public boost::enable_shared_from_this< boost::asio::ip::tcp::socket socket; Connection(boost::asio::io_service& io_service); - - private: + //! Callback for when data is read. - void handle_read(uint8_t* data, std::size_t bytes); + void handle_read(uint8_t* data, std::size_t bytes, const boost::system::error_code& error); //! Callback for when data is written. void handle_write(); |