source: flair-src/branches/sanscv/tools/Controller/Mavlink/src/Forwarder.h@ 426

Last change on this file since 426 was 324, checked in by Sanahuja Guillaume, 5 years ago

removing opencv dependency

File size: 1.1 KB
Line 
1// %flair:license{
2// This file is part of the Flair framework distributed under the
3// CECILL-C License, Version 1.0.
4// %flair:license}
5// created: 2016/09/02
6// filename: Forwarder.h
7//
8// authors: Thomas Fuhrmann
9// Copyright Heudiasyc UMR UTC/CNRS 7253
10//
11// version: $Id: $
12//
13// purpose: Forward input data to output data, using sockets
14//
15//
16/*********************************************************************/
17
18#ifndef MAVPLANNER_FORWARDER_H
19#define MAVPLANNER_FORWARDER_H
20
21#include <string>
22
23#include <Thread.h>
24
25namespace flair { namespace core {
26 class UdpSocket;
27} }
28
29class Forwarder : public flair::core::Thread {
30public:
31
32 Forwarder(std::string name,
33 std::string &inputAddress, int inputPort,
34 std::string &outputAddress, int outputPort);
35 ~Forwarder();
36
37private:
38 // reimplement the run of the Thread class
39 void Run();
40
41 flair::core::UdpSocket *inputSocket;
42 std::string inputAddress;
43 int inputPort;
44 char *inputBuffer;
45 const int inputBufferSize = 200;
46
47 flair::core::UdpSocket *outputSocket;
48 std::string outputAddress;
49 int outputPort;
50
51};
52
53#endif // MAVPLANNER_FORWARDER_H
Note: See TracBrowser for help on using the repository browser.