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: HelloWizFi250Interface
Fork of NetworkSocketAPI by
Diff: Socket.h
- Revision:
- 68:a52251517491
- Parent:
- 66:c84a4c76cb94
- Child:
- 70:aa343098aa61
--- a/Socket.h Fri Apr 01 17:18:27 2016 +0000
+++ b/Socket.h Fri Apr 01 17:49:52 2016 +0000
@@ -43,14 +43,14 @@
/** Send data over the socket
* @param data Buffer of data to send
* @param size Size of data to send
- * @return Number of bytes sent or a negative value on failure
+ * @return 0 on success
*/
int32_t send(const void *data, uint32_t size);
/** Recieve data over the socket
* @param data Buffer to store recieved data
* @param size Size of provided buffer
- * @param blocking If true wait for data, otherwise return NS_ERROR_WOULD_BLOCK
+ * @param blocking If true wait for data, otherwise return 0 if no data is available
* @return Number of bytes recieved or a negative value on failure
*/
int32_t recv(void *data, uint32_t size, bool blocking = true);
