First version
Dependencies: mbed EthernetInterface mbed-rto
Diff: Receiver.cpp
- Revision:
- 35:efdbfccf2678
- Parent:
- 30:915f6cb7ffa5
diff -r 915f6cb7ffa5 -r efdbfccf2678 Receiver.cpp --- a/Receiver.cpp Wed Apr 25 14:51:18 2018 +0000 +++ b/Receiver.cpp Wed May 02 06:53:40 2018 +0000 @@ -1,8 +1,15 @@ #include "Receiver.h" +/** +*@param queue Queue where received segments will we pushed. +*/ Receiver::Receiver(Queue<int,8>* queue):interpreter(queue){ } +/** +*Start a loop that will receive packets, and push their contents on the queue. +*This method should only be called by a seperate thread, because the execution doesn't stop. +*/ void Receiver::start(){ while(true){ listener.receiveSegment(command,sizeof(command));