ap

Dependencies:   DnsQuery

Dependents:   WizFi310_TCP_Echo_Server_Example

Fork of NetworkSocketAPI by NetworkSocketAPI

Revision:
66:c84a4c76cb94
Parent:
63:531f4c27f360
Child:
68:a52251517491
--- a/Socket.h	Fri Apr 01 16:29:45 2016 +0000
+++ b/Socket.h	Fri Apr 01 17:18:27 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);