![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
First version
Dependencies: mbed EthernetInterface mbed-rto
TCPlistener.h@60:ef4592cf5397, 2018-05-09 (annotated)
- Committer:
- KlaasGovaerts
- Date:
- Wed May 09 14:24:38 2018 +0000
- Revision:
- 60:ef4592cf5397
- Parent:
- 20:fe6a58e84929
- Child:
- 62:0b634db67ca8
LED2 werd weggehaald+verder opgekuist.
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 | 12:f3db7045e220 | 3 | #include "TCPSocketServer.h" |
KlaasGovaerts | 12:f3db7045e220 | 4 | #include "TCPSocketConnection.h" |
KlaasGovaerts | 4:0413d42377d1 | 5 | |
KlaasGovaerts | 4:0413d42377d1 | 6 | #ifndef TCPLISTENER_H |
KlaasGovaerts | 4:0413d42377d1 | 7 | #define TCPLISTENER_H |
KlaasGovaerts | 4:0413d42377d1 | 8 | class TCPlistener{ |
KlaasGovaerts | 4:0413d42377d1 | 9 | private: |
KlaasGovaerts | 4:0413d42377d1 | 10 | EthernetInterface eth; |
KlaasGovaerts | 12:f3db7045e220 | 11 | TCPSocketServer server; |
KlaasGovaerts | 14:5f1fda6b9140 | 12 | int arraySize; |
KlaasGovaerts | 4:0413d42377d1 | 13 | public: |
KlaasGovaerts | 15:ffd311730575 | 14 | bool receiveSegment(char *contents,int size); |
KlaasGovaerts | 12:f3db7045e220 | 15 | void listen(); |
KlaasGovaerts | 4:0413d42377d1 | 16 | TCPlistener(); |
KlaasGovaerts | 4:0413d42377d1 | 17 | }; |
KlaasGovaerts | 4:0413d42377d1 | 18 | #endif |