demo versie 16/05
Dependencies: EthernetInterface mbed-rto mbed
Fork of ProjectVLC by
TCPlistener.h@6:9903a0906a72, 2018-03-28 (annotated)
- Committer:
- KlaasGovaerts
- Date:
- Wed Mar 28 14:19:06 2018 +0000
- Revision:
- 6:9903a0906a72
- Parent:
- 5:0413d42377d1
- Child:
- 13:f3db7045e220
Versie 28/03
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
KlaasGovaerts | 5:0413d42377d1 | 1 | #include "mbed.h" |
KlaasGovaerts | 5:0413d42377d1 | 2 | #include "EthernetInterface.h" |
KlaasGovaerts | 6:9903a0906a72 | 3 | //#include "TCPSocket.h" |
KlaasGovaerts | 5:0413d42377d1 | 4 | |
KlaasGovaerts | 5:0413d42377d1 | 5 | #ifndef TCPLISTENER_H |
KlaasGovaerts | 5:0413d42377d1 | 6 | #define TCPLISTENER_H |
KlaasGovaerts | 5:0413d42377d1 | 7 | class TCPlistener{ |
KlaasGovaerts | 5:0413d42377d1 | 8 | private: |
KlaasGovaerts | 5:0413d42377d1 | 9 | EthernetInterface eth; |
KlaasGovaerts | 6:9903a0906a72 | 10 | //TCPSocket server; |
KlaasGovaerts | 5:0413d42377d1 | 11 | Endpoint client; |
KlaasGovaerts | 5:0413d42377d1 | 12 | public: |
KlaasGovaerts | 5:0413d42377d1 | 13 | void receivePacket(char *contents,int size); |
KlaasGovaerts | 5:0413d42377d1 | 14 | TCPlistener(); |
KlaasGovaerts | 5:0413d42377d1 | 15 | }; |
KlaasGovaerts | 5:0413d42377d1 | 16 | #endif |