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: DnsQuery
Dependents: WizFi310_TCP_Echo_Server_Example
Fork of NetworkSocketAPI by
Diff: SocketInterface.h
- Revision:
- 66:c84a4c76cb94
- Parent:
- 63:531f4c27f360
- Child:
- 68:a52251517491
diff -r ca337f9ebdab -r c84a4c76cb94 SocketInterface.h
--- a/SocketInterface.h Fri Apr 01 16:29:45 2016 +0000
+++ b/SocketInterface.h Fri Apr 01 17:18:27 2016 +0000
@@ -56,14 +56,14 @@
/** Send data
* @param data Buffer of data to send
* @param size Size of data to send
- * @return 0 on success
+ * @return Number of bytes received or a negative value on success
*/
virtual int32_t send(const void *data, uint32_t size) = 0;
/** Receive data
* @note
- * This call should return immediately with a value of 0
- * if no data is available.
+ * This call should return immediately with a value of
+ * NS_ERROR_WOULD_BOCK if no data is available.
*
* @param data A buffer to store the data in
* @param size Size of buffer
