basic commandline parsing + basic tox setup

This commit is contained in:
2023-01-13 21:11:42 +01:00
parent 04310100b5
commit b7915c55a4
8 changed files with 352 additions and 1 deletions

View File

@@ -1,6 +1,29 @@
#include <tox/tox.h>
#include "./tox_client.hpp"
#include "./command_line.hpp"
#include <memory>
#include <iostream>
#include <unordered_map>
int main(int argc, char** argv) {
CommandLine cl(argc, argv);
if (cl.version) {
std::cout << "tox_ngc_ft1_tool v0.0.1\n";
}
if (cl._should_exit) {
return 0;
}
ToxClient client(cl);
std::cout << "tox id: " << client.getOwnAddress() << "\n";
while (true) {
client.iterate();
}
return 0;
}