Add checking of data

This commit is contained in:
2025-01-28 15:49:36 +01:00
parent 9edd3fc156
commit 2c9e13baaf
5 changed files with 125 additions and 0 deletions

View File

@@ -2,9 +2,11 @@
#include "NetConst.hpp"
#include "sql.hpp"
#include "values/DnaManager.hpp"
#include "checker.hpp"
#include <iostream>
#include <map>
#include <thread>
// use pthread rw_lock to lock db so you can safy clone .db file
@@ -105,6 +107,7 @@ void call(int sock, sockaddr_in newSocketInfo)
int main()
{
sql::init();
std::thread t(checker);
// Bind the server to a port.
int err = TcpSocket::listent("0.0.0.0", 8888, call);
if (err < 0)