working commit

This commit is contained in:
2026-04-22 14:26:33 +02:00
parent e9a527b5de
commit fb080285c6
23 changed files with 1198 additions and 1739 deletions
+23
View File
@@ -0,0 +1,23 @@
#include <expected>
#include <string>
#include <chrono>
#include <cstring>
#include <tunnel.hpp>
#include <server.hpp>
using namespace std::chrono_literals;
int main(int argc, char** argv) {
Server srv;
auto createres = srv.Create("tun10", "10.1.2.1", 30);
if (!createres) {
std::cerr << "Error: " << createres.error() << std::endl;
return 1;
}
std::chrono::milliseconds timesleep(20s);
std::this_thread::sleep_for(timesleep);
return 0;
}