start writing the reveive part

This commit is contained in:
2023-01-15 20:46:09 +01:00
parent 3e0100efdf
commit c712afb7b2
7 changed files with 134 additions and 3 deletions

View File

@@ -4,6 +4,7 @@
#include "./tox_callbacks.hpp"
#include "./states/send_start_sha1.hpp"
#include "./states/receive_start_sha1.hpp"
#include <memory>
#include <sodium.h>
@@ -127,6 +128,7 @@ ToxClient::ToxClient(const CommandLine& cl) :
if (!cl.send_path.empty()) {
_state = std::make_unique<States::SendStartSHA1>(*this, cl);
} else { // receiver
_state = std::make_unique<States::ReceiveStartSHA1>(*this, cl);
}
}