aboutsummaryrefslogtreecommitdiff
path: root/client/src/main.cpp
diff options
context:
space:
mode:
authoralpine <[email protected]>2020-06-15 22:15:02 +0200
committeralpine <[email protected]>2020-06-15 22:15:02 +0200
commitede39016d04b661c7102d8d26c800acb08aa629c (patch)
tree85f82718ab91934f57d15a6860ebdec6cf46be54 /client/src/main.cpp
parentRemoved xor as it was slowing down everything alot. (diff)
downloadloader-ede39016d04b661c7102d8d26c800acb08aa629c.tar.xz
loader-ede39016d04b661c7102d8d26c800acb08aa629c.zip
Finished session/user id generation.
Diffstat (limited to 'client/src/main.cpp')
-rw-r--r--client/src/main.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/client/src/main.cpp b/client/src/main.cpp
index c94a866..a9fecec 100644
--- a/client/src/main.cpp
+++ b/client/src/main.cpp
@@ -8,6 +8,11 @@ int main(int argc, char *argv[]) {
tcp::client client;
if (client.start("127.0.0.1", 6666)) {
+ if(!client.set_uid()) {
+ io::logger->error("failed to set session id.");
+ return 0;
+ }
+
io::logger->info("connected.");
client.set_state(tcp::client_state::active);
}
@@ -16,6 +21,7 @@ int main(int argc, char *argv[]) {
if(!packet)
return;
+ io::logger->info(packet.message);
if(packet.message == "stream") {
std::vector<char> dat;
client.read_stream(dat);