Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed EthernetInterface mbed-rto
Diff: TCPlistener.h
- Revision:
- 15:ffd311730575
- Parent:
- 14:5f1fda6b9140
- Child:
- 20:fe6a58e84929
diff -r 5f1fda6b9140 -r ffd311730575 TCPlistener.h
--- a/TCPlistener.h Wed Apr 18 08:35:32 2018 +0000
+++ b/TCPlistener.h Wed Apr 18 09:17:14 2018 +0000
@@ -9,11 +9,11 @@
private:
EthernetInterface eth;
TCPSocketServer server;
- TCPSocketConnection *connections[10];
+ TCPSocketConnection* connections[10];
int arraySize;
- TCPSocketConnection * newConnection();
+ TCPSocketConnection* newConnection();
public:
- void receivePacket(char *contents,int size);
+ bool receiveSegment(char *contents,int size);
void listen();
TCPlistener();
};
