demo versie 16/05
Dependencies: EthernetInterface mbed-rto mbed
Fork of ProjectVLC by
TCPlistener.h@21:fe6a58e84929, 2018-04-18 (annotated)
- Committer:
- KlaasGovaerts
- Date:
- Wed Apr 18 14:34:31 2018 +0000
- Revision:
- 21:fe6a58e84929
- Parent:
- 16:ffd311730575
- Child:
- 35:efdbfccf2678
- Child:
- 63:ef4592cf5397
Pakket ontvangen en interpreteren werkt.
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 | 21:fe6a58e84929 | 12 | //TCPSocketConnection* connections[10]; |
KlaasGovaerts | 15:5f1fda6b9140 | 13 | int arraySize; |
KlaasGovaerts | 21:fe6a58e84929 | 14 | //TCPSocketConnection* newConnection(); |
KlaasGovaerts | 5:0413d42377d1 | 15 | public: |
KlaasGovaerts | 16:ffd311730575 | 16 | bool receiveSegment(char *contents,int size); |
KlaasGovaerts | 13:f3db7045e220 | 17 | void listen(); |
KlaasGovaerts | 5:0413d42377d1 | 18 | TCPlistener(); |
KlaasGovaerts | 5:0413d42377d1 | 19 | }; |
KlaasGovaerts | 5:0413d42377d1 | 20 | #endif |