added socket handler
This commit is contained in:
@@ -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;
|
||||
@@ -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);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user