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: mbed EthernetInterface mbed-rto
Diff: TCPlistener.h
- Revision:
- 4:0413d42377d1
- Child:
- 5:9903a0906a72
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TCPlistener.h Wed Mar 28 13:28:14 2018 +0000 @@ -0,0 +1,15 @@ +#include "mbed.h" +#include "EthernetInterface.h" + +#ifndef TCPLISTENER_H +#define TCPLISTENER_H + class TCPlistener{ + private: + EthernetInterface eth; + TCPSocket server; + Endpoint client; + public: + void receivePacket(char *contents,int size); + TCPlistener(); + }; +#endif \ No newline at end of file