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.
Dependents: SNIC-xively-jumpstart-demo SNIC-FluentLogger-example TCPEchoServer murataDemo ... more
Fork of YDwifiInterface by
Diff: Socket/TCPSocketConnection.h
- Revision:
- 48:ee7e07fb401f
- Parent:
- 41:1c1b5ad4d491
--- a/Socket/TCPSocketConnection.h Mon Feb 02 00:10:06 2015 +0000
+++ b/Socket/TCPSocketConnection.h Tue Mar 31 02:48:32 2015 +0000
@@ -69,6 +69,13 @@
@return the number of received bytes on success (>=0) or -1 on failure
*/
int receive(char *data_p, int length);
+
+ /** Send data to the remote host.
+ @param data The buffer to send to the host.
+ @param length The length of the buffer to send.
+ @return the number of written bytes on success (>=0) or -1 on failure
+ */
+ int receive_all(char *data_p, int length);
void setAcceptSocket( int socket_id );
private:

Murata TypeYD