added socket handler

This commit is contained in:
Johannes Wendel
2019-04-25 19:40:35 +02:00
parent 79e608b4d7
commit 7a87cf5661
16 changed files with 753 additions and 143 deletions

View File

@@ -1,5 +1,11 @@
//
// Created by rhetenor on 3/6/19.
//
/*
* SocketConnection.cpp
*
* Created on: Jun 13, 2018
* Author: Andreas Schneider, Johannes Wendel, Jonas Zeunert
*/
#include "SocketConnection.h"
using Poco::Net::StreamSocket;

View File

@@ -1,12 +1,18 @@
//
// Created by rhetenor on 3/6/19.
//
/*
* SocketConnection.h
*
* Created on: Jun 13, 2018
* Author: Andreas Schneider, Johannes Wendel, Jonas Zeunert
*/
#ifndef FLIPPR_CODE_INPUTSOCKETCONNECTION_H
#define FLIPPR_CODE_INPUTSOCKETCONNECTION_H
#include <Poco/Net/TCPServerConnection.h>
#include "Event.h"
namespace flippR_driver
{
namespace utility
@@ -17,8 +23,11 @@ namespace input
{
class SocketConnection : public Poco::Net::TCPServerConnection
{
public:
SocketConnection(Poco::Net::StreamSocket streamSocket);
void run();
void sendEvent(flippR_driver::input::Event event);
};
}

View File

@@ -1,5 +1,8 @@
//
// Created by johannes on 25.04.19.
//
/*
* Detector.h
*
* Created on: Jun 13, 2018
* Author: Andreas Schneider, Johannes Wendel, Jonas Zeunert
*/
#include "TcpServer.h"

View File

@@ -1,6 +1,9 @@
//
// Created by johannes on 25.04.19.
//
/*
* Detector.h
*
* Created on: Jun 13, 2018
* Author: Andreas Schneider, Johannes Wendel, Jonas Zeunert
*/
#ifndef FLIPPR_CODE_TCPSERVER_H
#define FLIPPR_CODE_TCPSERVER_H