![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
First version
Dependencies: mbed EthernetInterface mbed-rto
TCPlistener.h@4:0413d42377d1, 2018-03-28 (annotated)
- Committer:
- KlaasGovaerts
- Date:
- Wed Mar 28 13:28:14 2018 +0000
- Revision:
- 4:0413d42377d1
- Child:
- 5:9903a0906a72
Added TCPlistener class
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
KlaasGovaerts | 4:0413d42377d1 | 1 | #include "mbed.h" |
KlaasGovaerts | 4:0413d42377d1 | 2 | #include "EthernetInterface.h" |
KlaasGovaerts | 4:0413d42377d1 | 3 | |
KlaasGovaerts | 4:0413d42377d1 | 4 | #ifndef TCPLISTENER_H |
KlaasGovaerts | 4:0413d42377d1 | 5 | #define TCPLISTENER_H |
KlaasGovaerts | 4:0413d42377d1 | 6 | class TCPlistener{ |
KlaasGovaerts | 4:0413d42377d1 | 7 | private: |
KlaasGovaerts | 4:0413d42377d1 | 8 | EthernetInterface eth; |
KlaasGovaerts | 4:0413d42377d1 | 9 | TCPSocket server; |
KlaasGovaerts | 4:0413d42377d1 | 10 | Endpoint client; |
KlaasGovaerts | 4:0413d42377d1 | 11 | public: |
KlaasGovaerts | 4:0413d42377d1 | 12 | void receivePacket(char *contents,int size); |
KlaasGovaerts | 4:0413d42377d1 | 13 | TCPlistener(); |
KlaasGovaerts | 4:0413d42377d1 | 14 | }; |
KlaasGovaerts | 4:0413d42377d1 | 15 | #endif |