aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--network-handler/client.cpp6
-rw-r--r--network-handler/client.hpp4
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);
};