![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
demo versie 16/05
Dependencies: EthernetInterface mbed-rto mbed
Fork of ProjectVLC by
TCPlistener.h@13:f3db7045e220, 2018-04-18 (annotated)
- Committer:
- KlaasGovaerts
- Date:
- Wed Apr 18 07:41:38 2018 +0000
- Revision:
- 13:f3db7045e220
- Parent:
- 6:9903a0906a72
- Child:
- 14:a6c651a1e51c
Versie 18/04
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 | 13:f3db7045e220 | 3 | #include "TCPSocketServer.h" |
KlaasGovaerts | 13:f3db7045e220 | 4 | #include "TCPSocketConnection.h" |
KlaasGovaerts | 5:0413d42377d1 | 5 | |
KlaasGovaerts | 5:0413d42377d1 | 6 | #ifndef TCPLISTENER_H |
KlaasGovaerts | 5:0413d42377d1 | 7 | #define TCPLISTENER_H |
KlaasGovaerts | 5:0413d42377d1 | 8 | class TCPlistener{ |
KlaasGovaerts | 5:0413d42377d1 | 9 | private: |
KlaasGovaerts | 5:0413d42377d1 | 10 | EthernetInterface eth; |
KlaasGovaerts | 13:f3db7045e220 | 11 | TCPSocketServer server; |
KlaasGovaerts | 5:0413d42377d1 | 12 | Endpoint client; |
KlaasGovaerts | 13:f3db7045e220 | 13 | TCPSocketConnection *connections[10]; |
KlaasGovaerts | 5:0413d42377d1 | 14 | public: |
KlaasGovaerts | 5:0413d42377d1 | 15 | void receivePacket(char *contents,int size); |
KlaasGovaerts | 13:f3db7045e220 | 16 | void listen(); |
KlaasGovaerts | 5:0413d42377d1 | 17 | TCPlistener(); |
KlaasGovaerts | 5:0413d42377d1 | 18 | }; |
KlaasGovaerts | 5:0413d42377d1 | 19 | #endif |