summaryrefslogtreecommitdiffstats
path: root/src/main_server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main_server.cpp')
-rw-r--r--src/main_server.cpp23
1 files changed, 1 insertions, 22 deletions
diff --git a/src/main_server.cpp b/src/main_server.cpp
index b2f9425..7c6cee4 100644
--- a/src/main_server.cpp
+++ b/src/main_server.cpp
@@ -1,25 +1,10 @@
#include "UDPServer/UDPServer.h"
#include "ReceiverThreads/ReceiverThreads.h"
-#include <boost/log/core.hpp>
-#include <boost/log/trivial.hpp>
-#include <boost/log/expressions.hpp>
-
#include <iostream>
#include <string>
#include <thread>
-void initLog() {
-/*
-#ifndef NDEBUG
- boost::log::core::get()->set_filter(boost::log::trivial::severity >= boost::log::trivial::debug);
-#else
- boost::log::core::get()->set_filter(boost::log::trivial::severity >= boost::log::trivial::info);
-#endif
-*/
- boost::log::core::get()->set_filter(boost::log::trivial::severity >= boost::log::trivial::info);
-}
-
void start(std::function<void(void)> func){
std::thread([func]() {
while (true)
@@ -31,10 +16,8 @@ void start(std::function<void(void)> func){
int main (int argc, char *argv[]){
- initLog();
-
if(argc < 4){
- BOOST_LOG_TRIVIAL(error) << "Program usage: ./onlineDetectorSimulatorServer <address> <first_port> <num_ports>";
+ std::cerr << "Program usage: ./onlineDetectorSimulatorServer <address> <first_port> <num_ports>";
return 0;
}
@@ -66,12 +49,8 @@ int main (int argc, char *argv[]){
// std::size_t index = *((std::size_t *)buf.data());
// if(index%1000 == 99) printf("%lu\n", index);
//
-// if(lastIndex != (index-1))
-// BOOST_LOG_TRIVIAL(warning) << "Packet loss or wrong order!";
-//
// lastIndex = index;
//
-// BOOST_LOG_TRIVIAL(debug) << "Server: Received " << bytes << " Bytes with Index " << index;
// }
return 0;