diff options
| author | Dennis Brentjes <d.brentjes@gmail.com> | 2016-08-29 14:15:50 +0200 |
|---|---|---|
| committer | Dennis Brentjes <d.brentjes@gmail.com> | 2016-08-29 14:16:25 +0200 |
| commit | 14f06109fe736d06d30f99a4acc0bd1f233ec2af (patch) | |
| tree | f34e770776b3ae3d9d71d2edb87fa430fcbc1abd | |
| parent | 4dd767d9a09feee221e5770b7f0d46fbb6c52455 (diff) | |
| download | cmix-14f06109fe736d06d30f99a4acc0bd1f233ec2af.tar.gz cmix-14f06109fe736d06d30f99a4acc0bd1f233ec2af.tar.bz2 cmix-14f06109fe736d06d30f99a4acc0bd1f233ec2af.zip | |
Refactors on_done to done and set_on_done to on_done.
| -rw-r--r-- | network-handler/client.cpp | 6 | ||||
| -rw-r--r-- | network-handler/client.hpp | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/network-handler/client.cpp b/network-handler/client.cpp index c2825d7..f767f6d 100644 --- a/network-handler/client.cpp +++ b/network-handler/client.cpp @@ -23,7 +23,7 @@ void Client::handle_receive(const error_code &ec, size_t read_bytes) std::cout << "Received: " << std::string(data.begin(), data.end()) << std::endl; receive(); } else { - on_done(); + done(); } } @@ -36,6 +36,6 @@ void Client::receive() { ); } -void Client::set_on_done(Client::OnDoneFT f) { - on_done = f; +void Client::on_done(Client::OnDoneFT f) { + done = f; } diff --git a/network-handler/client.hpp b/network-handler/client.hpp index e71edb2..716e2cf 100644 --- a/network-handler/client.hpp +++ b/network-handler/client.hpp @@ -11,8 +11,8 @@ public: private: boost::asio::ip::tcp::socket socket; - OnDoneFT on_done; boost::asio::streambuf buffer; + OnDoneFT done; public: @@ -20,5 +20,5 @@ public: void handle_receive(boost::system::error_code const& ec, size_t read_bytes); void receive(); - void set_on_done(OnDoneFT f); + void on_done(OnDoneFT f); }; |
