diff options
| author | alpine <[email protected]> | 2020-06-15 21:34:40 +0200 |
|---|---|---|
| committer | alpine <[email protected]> | 2020-06-15 21:34:40 +0200 |
| commit | 19583bfb75d4a15a75d70355dd3b752bfc1d8b03 (patch) | |
| tree | 868211249e0d4011e06bef6a879f462053d3c745 /server/src/main.cpp | |
| parent | Client. (diff) | |
| download | loader-19583bfb75d4a15a75d70355dd3b752bfc1d8b03.tar.xz loader-19583bfb75d4a15a75d70355dd3b752bfc1d8b03.zip | |
Removed xor as it was slowing down everything alot.
Finished file/message streaming, really fast.
Diffstat (limited to 'server/src/main.cpp')
| -rw-r--r-- | server/src/main.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/server/src/main.cpp b/server/src/main.cpp index 9db266f..21cad38 100644 --- a/server/src/main.cpp +++ b/server/src/main.cpp @@ -2,7 +2,6 @@ #include "util/io.h" #include "util/commands.h" #include "server/server.h" -#include "util/xor.h" int main(int argc, char *argv[]) { io::init(false); @@ -31,8 +30,13 @@ int main(int argc, char *argv[]) { io::logger->info("{} : {}", packet.uid.data(), packet.message); - tcp::packet_t resp("hello nigga", tcp::packet_type::write, "1234567890"); + tcp::packet_t resp("stream", tcp::packet_type::write, "1234567890"); client.write(resp.message.data(), resp.message.size()); + + std::vector<char> out; + io::read_file("test.dll", out); + client.stream(out); + }); std::thread t{tcp::server::monitor, std::ref(server)}; |