removed stopserver

This commit is contained in:
2026-04-20 13:59:13 +02:00
parent 105ab9edbe
commit ecba0bdb75
4 changed files with 2 additions and 25 deletions
@@ -4,7 +4,7 @@
add_executable(matterhornDetectorServer_virtual
${CMAKE_CURRENT_SOURCE_DIR}/src/MatterhornApp.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/VirtualMatterhornServer.cpp
#${CMAKE_CURRENT_SOURCE_DIR}/src/StopServer.cpp
#${CMAKE_CURRENT_SOURCE_DIR}/src/MatterhornServer.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/CommandLineOptions.cpp
)
@@ -1,5 +1,4 @@
#include "CommandLineOptions.h"
#include "StopServer.h"
#include "VirtualMatterhornServer.h"
#include "sls/logger.h"
#include "sls/sls_detector_exceptions.h"
@@ -3,7 +3,7 @@
namespace sls {
MatterhornServer::MatterhornServer(uint16_t port)
: BaseMatterhornServer(port) {
: BaseMatterhornServer<MatterhornServer>(port) {
// TODO: when do i set the udp mac and ip ?
@@ -21,9 +21,4 @@ ReturnCode MatterhornServer::initial_checks(ServerInterface &socket) {
return static_cast<ReturnCode>(socket.sendResult(initial_checks_passed));
}
ReturnCode MatterhornServer::get_update_mode(ServerInterface &socket) {
return static_cast<ReturnCode>(
socket.sendResult(static_cast<int>(updateMode)));
}
} // namespace sls
@@ -1,17 +0,0 @@
#include "StopServer.h"
#include "sls/network_utils.h"
#include "sls/sls_detector_defs.h"
namespace sls {
StopServer::StopServer(uint16_t port) : MatterhornServer(port) {
/*
// open shared memory segment of control server map to virtual memory space
if (sharedMemory_open(port - 1) == slsDetectorDefs::FAIL) {
throw sls::RuntimeError("Failed to open shared memory");
}
*/
}
} // namespace sls