working commit

This commit is contained in:
Олег Бородин
2026-05-06 15:10:19 +02:00
parent eda9b8986b
commit 9540ac05d4
17 changed files with 849 additions and 228 deletions
+22
View File
@@ -0,0 +1,22 @@
#include <expected>
#include <string>
#include <cstring>
#include <tservice.hpp>
#include <uxlogger.hpp>
int main(int argc, char** argv) {
TCPService service(1025);
auto bindRes = service.Bind();
if (!bindRes) {
uxlogger.Log("Bind error: " + bindRes.error());
return 1;
}
auto listenRes = service.Listen();
if (!listenRes) {
uxlogger.Log("Listen error: " + listenRes.error());
return 1;
}
return 0;
}