Add checking of data
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user