meeerged
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
cmake_minimum_required(VERSION 3.6.2)
|
||||
project(flippR_driver_networking)
|
||||
|
||||
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/${OUTPUT_PATH}/networking)
|
||||
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/${OUTPUT_PATH}/cli)
|
||||
set(SOURCES
|
||||
input/SocketHandler.cpp
|
||||
output/OutputRequestHandler.cpp
|
||||
|
||||
@@ -11,13 +11,11 @@
|
||||
using Poco::Net::StreamSocket;
|
||||
using Poco::Net::TCPServerConnection;
|
||||
using flippR_driver::input::InputDriver;
|
||||
using flippR_driver::input::detail::EventHandler;
|
||||
using flippR_driver::input::EventHandler;
|
||||
using flippR_driver::input::Event;
|
||||
|
||||
namespace flippR_driver
|
||||
{
|
||||
namespace utility
|
||||
{
|
||||
namespace networking
|
||||
{
|
||||
namespace input
|
||||
@@ -53,7 +51,7 @@ void SocketHandler::handle(Event &event)
|
||||
this->queue->push(event);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -14,16 +14,15 @@
|
||||
#include "input/InputDriver.h"
|
||||
#include "input/EventHandler.h"
|
||||
#include "input/Event.h"
|
||||
#include "utility/IBlockingQueue.h"
|
||||
|
||||
namespace flippR_driver
|
||||
{
|
||||
namespace utility
|
||||
{
|
||||
namespace networking
|
||||
{
|
||||
namespace input
|
||||
{
|
||||
class SocketHandler : public Poco::Net::TCPServerConnection, flippR_driver::input::detail::EventHandler
|
||||
class SocketHandler : public Poco::Net::TCPServerConnection, flippR_driver::input::EventHandler
|
||||
{
|
||||
public:
|
||||
SocketHandler(Poco::Net::StreamSocket streamSocket, std::shared_ptr<flippR_driver::input::InputDriver> input_driver);
|
||||
@@ -38,6 +37,5 @@ private:
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif //FLIPPR_CODE_INPUTSOCKETCONNECTION_H
|
||||
|
||||
Reference in New Issue
Block a user