Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: EthernetInterface mbed-rto mbed
Fork of ProjectVLC by
Receiver.h
00001 #include "rtos.h" 00002 #include "Interpreter.h" 00003 #include "TCPlistener.h" 00004 00005 #ifndef RECEIVER_H 00006 #define RECEIVER_H 00007 /** 00008 * A class used to receive commands via TCP and execute them. 00009 */ 00010 class Receiver{ 00011 private: 00012 Queue<int,8>* queue; 00013 Interpreter interpreter; 00014 TCPlistener listener; 00015 char command[512]; 00016 public: 00017 /** 00018 *@param queue The queue where received and interpreted commands will we pushed. 00019 */ 00020 Receiver (Queue<int,8>* queue); 00021 00022 /** 00023 *Start a loop that will receive packets, and push their contents on the queue. 00024 *This method should be called last. 00025 */ 00026 void start(); 00027 }; 00028 #endif
Generated on Wed Jul 13 2022 07:48:05 by
1.7.2
