![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
First version
Dependencies: mbed EthernetInterface mbed-rto
Diff: TCPlistener.h
- Revision:
- 14:5f1fda6b9140
- Parent:
- 13:a6c651a1e51c
- Child:
- 15:ffd311730575
diff -r a6c651a1e51c -r 5f1fda6b9140 TCPlistener.h --- a/TCPlistener.h Wed Apr 18 08:09:56 2018 +0000 +++ b/TCPlistener.h Wed Apr 18 08:35:32 2018 +0000 @@ -9,9 +9,9 @@ private: EthernetInterface eth; TCPSocketServer server; - Endpoint client; TCPSocketConnection *connections[10]; - TCPSocketConnection * newConnection(TCPSocketConnection **connectionArray,int arraySize); + int arraySize; + TCPSocketConnection * newConnection(); public: void receivePacket(char *contents,int size); void listen();