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:
- 70:aa343098aa61
- Parent:
- 68:a52251517491
- Child:
- 109:5d8bd5752386
diff -r f034af6af872 -r aa343098aa61 Socket.h
--- a/Socket.h	Thu Mar 31 00:56:13 2016 -0500
+++ b/Socket.h	Fri Apr 01 18:26:24 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 0 on success
+     *  @return Number of bytes sent or a negative value on failure
      */
     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 0 if no data is available
+     *  @param blocking If true wait for data, otherwise return NS_ERROR_WOULD_BLOCK
      *  @return Number of bytes recieved or a negative value on failure
      */
     int32_t recv(void *data, uint32_t size, bool blocking = true);
    