working on item rewrite
This commit is contained in:
@@ -1,36 +0,0 @@
|
||||
//
|
||||
// Created by rhetenor on 27.11.18.
|
||||
//
|
||||
|
||||
#include "SocketHandler.h"
|
||||
|
||||
namespace flippR_driver
|
||||
{
|
||||
namespace utility
|
||||
{
|
||||
//using namespace nlohmann;
|
||||
|
||||
SocketHandler::SocketHandler(std::string socket_file)
|
||||
{
|
||||
//this->socket.connect(socket_file);
|
||||
}
|
||||
/*
|
||||
SocketHandler::create_client(const std::string& socket_file)
|
||||
{
|
||||
this->socket.connect(socket_file);
|
||||
}
|
||||
|
||||
SocketHandler::create_server(const std::string& socket_file)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void SocketHandler::write_to_socket(json &json)
|
||||
{
|
||||
std::string json_data = json.dump();
|
||||
|
||||
boost::asio::write(this->socket, boost::asio::buffer(json_data, json_data.length()));
|
||||
}
|
||||
*/
|
||||
}
|
||||
}
|
||||
@@ -1,30 +0,0 @@
|
||||
//
|
||||
// Created by rhetenor on 27.11.18.
|
||||
//
|
||||
|
||||
#ifndef FLIPPR_DRIVER_SOCKETHANDLER_H
|
||||
#define FLIPPR_DRIVER_SOCKETHANDLER_H
|
||||
|
||||
#include <Poco/Net/Socket.h>
|
||||
#include <Poco/JSON/JSON.h>
|
||||
|
||||
namespace flippR_driver
|
||||
{
|
||||
namespace utility
|
||||
{
|
||||
class SocketHandler
|
||||
{
|
||||
public:
|
||||
SocketHandler(std::string socket_file);
|
||||
|
||||
protected:
|
||||
Poco::Net::Socket socket;
|
||||
|
||||
protected:
|
||||
void write_to_socket(std::string &data);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#endif //FLIPPR_DRIVER_SOCKETHANDLER_H
|
||||
@@ -1,8 +0,0 @@
|
||||
/*
|
||||
* Detector.h
|
||||
*
|
||||
* Created on: Jun 13, 2018
|
||||
* Author: Andreas Schneider, Johannes Wendel, Jonas Zeunert
|
||||
*/
|
||||
|
||||
#include "TcpServer.h"
|
||||
@@ -1,31 +0,0 @@
|
||||
/*
|
||||
* Detector.h
|
||||
*
|
||||
* Created on: Jun 13, 2018
|
||||
* Author: Andreas Schneider, Johannes Wendel, Jonas Zeunert
|
||||
*/
|
||||
|
||||
#ifndef FLIPPR_CODE_TCPSERVER_H
|
||||
#define FLIPPR_CODE_TCPSERVER_H
|
||||
|
||||
namespace flippR_driver
|
||||
{
|
||||
namespace utility
|
||||
{
|
||||
namespace networking
|
||||
{
|
||||
namespace input
|
||||
{
|
||||
|
||||
class TcpServer
|
||||
{
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif //FLIPPR_CODE_TCPSERVER_H
|
||||
@@ -1,5 +0,0 @@
|
||||
//
|
||||
// Created by rhetenor on 11.12.18.
|
||||
//
|
||||
|
||||
#include "OutputSocketHandler.h"
|
||||
@@ -1,25 +0,0 @@
|
||||
//
|
||||
// Created by rhetenor on 11.12.18.
|
||||
//
|
||||
|
||||
#ifndef FLIPPR_DRIVER_OUTPUTSOCKETHANDLER_H
|
||||
#define FLIPPR_DRIVER_OUTPUTSOCKETHANDLER_H
|
||||
|
||||
#include "utility/SocketHandler.h"
|
||||
#include "output/OutputDriver.h"
|
||||
|
||||
namespace flippR_driver
|
||||
{
|
||||
namespace utility
|
||||
{
|
||||
|
||||
class OutputSocketHandler : public SocketHandler
|
||||
{
|
||||
|
||||
OutputSocketHandler(std::unique_ptr<output::OutputDriver> output_driver);
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif //FLIPPR_DRIVER_OUTPUTSOCKETHANDLER_H
|
||||
Reference in New Issue
Block a user