Changeset 178 in flair-src for trunk/tools/Controller/Mavlink/src
- Timestamp:
- May 19, 2017, 4:15:52 PM (8 years ago)
- Location:
- trunk/tools/Controller/Mavlink/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/Controller/Mavlink/src/Forwarder.cpp
r137 r178 18 18 #include "Forwarder.h" 19 19 20 #include < Socket.h>20 #include <UdpSocket.h> 21 21 #include <Thread.h> 22 22 #include <FrameworkManager.h> … … 41 41 // cout << "output socket : " << outputAddress + ":" + to_string(outputPort) << endl; 42 42 43 inputSocket = new Socket((Thread *)this, "input socket", inputPort);44 outputSocket = new Socket((Thread *)this, "output socket", outputAddress + ":" + to_string(outputPort));43 inputSocket = new UdpSocket((Thread *)this, "input socket", inputPort); 44 outputSocket = new UdpSocket((Thread *)this, "output socket", outputAddress + ":" + to_string(outputPort)); 45 45 } 46 46 -
trunk/tools/Controller/Mavlink/src/Forwarder.h
r137 r178 23 23 #include <Thread.h> 24 24 25 namespace flair { 26 namespace core { 27 class Socket; 28 } 29 } 25 namespace flair { namespace core { 26 class UdpSocket; 27 } } 30 28 31 29 class Forwarder : public flair::core::Thread { … … 41 39 void Run(); 42 40 43 flair::core:: Socket *inputSocket;41 flair::core::UdpSocket *inputSocket; 44 42 std::string inputAddress; 45 43 int inputPort; … … 47 45 const int inputBufferSize = 200; 48 46 49 flair::core:: Socket *outputSocket;47 flair::core::UdpSocket *outputSocket; 50 48 std::string outputAddress; 51 49 int outputPort; -
trunk/tools/Controller/Mavlink/src/GuiFlair.cpp
r137 r178 20 20 #include "GuiInterface.h" 21 21 22 #include < Socket.h>22 #include <UdpSocket.h> 23 23 24 24 //todo remove for tests … … 34 34 cout << "MavPlanner GuiFlair constructor" << endl; 35 35 36 outputSocket = new Socket((Thread *)this, "output socket", "127.0.0.1:5036");36 outputSocket = new UdpSocket((Thread *)this, "output socket", "127.0.0.1:5036"); 37 37 38 38 // outputSocket = new Socket(parent, "output socket", "127.255.255.255:9001", true); 39 inputSocket = new Socket((Thread *)this, "input socket", 9001);39 inputSocket = new UdpSocket((Thread *)this, "input socket", 9001); 40 40 } 41 41 -
trunk/tools/Controller/Mavlink/src/GuiFlair.h
r137 r178 24 24 #include "GuiInterface.h" 25 25 26 namespace flair { 27 namespace core { 28 class Socket; 29 } 30 } 26 namespace flair { namespace core { 27 class UdpSocket; 28 } } 31 29 32 30 class GuiFlair : public GuiInterface { … … 44 42 45 43 private: 46 flair::core:: Socket *inputSocket;47 flair::core:: Socket *outputSocket;44 flair::core::UdpSocket *inputSocket; 45 flair::core::UdpSocket *outputSocket; 48 46 std::string outputAddress; 49 47 int outputPort;
Note:
See TracChangeset
for help on using the changeset viewer.