ian rau / Mbed 2 deprecated ProjectVLC

Dependencies:   EthernetInterface mbed-rto mbed

Fork of ProjectVLC by Klaas Govaerts

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Receiver.h Source File

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