Files
flippr-code/FlippR-Driver/networking/input/InputSocketHandlerFactory.h
2019-06-15 14:52:42 +02:00

34 lines
717 B
C++

//
// Created by johannes on 15.06.19.
//
#ifndef FLIPPR_DRIVER_INPUTSOCKETHANDLERFACTORY_H
#define FLIPPR_DRIVER_INPUTSOCKETHANDLERFACTORY_H
#include <Poco/Net/TCPServerConnectionFactory.h>
#include <input/InputDriver.h>
namespace flippR_driver
{
namespace networking
{
namespace input
{
class InputSocketHandlerFactory : Poco::Net::TCPServerConnectionFactory
{
public:
explicit InputSocketHandlerFactory(std::shared_ptr<flippR_driver::input::InputDriver> inputDriver);
Poco::Net::TCPServerConnection* createConnection(const Poco::Net::StreamSocket &socket) override;
private:
std::shared_ptr<flippR_driver::input::InputDriver> input_driver;
};
}
}
}
#endif //FLIPPR_DRIVER_INPUTSOCKETHANDLERFACTORY_H