aboutsummaryrefslogtreecommitdiff
path: root/network-handler/userclient.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'network-handler/userclient.cpp')
-rw-r--r--network-handler/userclient.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/network-handler/userclient.cpp b/network-handler/userclient.cpp
new file mode 100644
index 0000000..b35a544
--- /dev/null
+++ b/network-handler/userclient.cpp
@@ -0,0 +1,12 @@
+#include "userclient.hpp"
+
+#include <iostream>
+
+void UserClient::handle_message(std::vector<uint8_t> message)
+{
+ std::cout << std::string(message.begin(), message.end());
+}
+
+UserClient::UserClient(boost::asio::ip::tcp::socket&& socket)
+: Client(std::move(socket))
+{}