NetworkSocketAPI

Dependencies:   DnsQuery

Dependents:   HelloWizFi250Interface

Fork of NetworkSocketAPI by NetworkSocketAPI

Revision:
96:656011e49d9f
Parent:
95:b3c679f20d13
Child:
99:f51358e506c1
--- a/NetworkInterface.h	Tue Apr 19 18:24:24 2016 -0500
+++ b/NetworkInterface.h	Tue Apr 19 18:24:34 2016 -0500
@@ -22,7 +22,7 @@
 
 
 /** Enum of standardized error codes
- *  @enum ns_error_t
+ *  @enum nsapi_error_t
  */
 enum nsapi_error_t {
     NSAPI_ERROR_WOULD_BLOCK   = -3001,     /*!< no data is not available but call is non-blocking */
@@ -38,9 +38,9 @@
 };
    
 /** Enum of available options
- *  @enum ns_opt_t
+ *  @enum nsapi_opt_t
  */
-enum ns_opt_t {
+enum nsapi_opt_t {
 };
 
 /** Enum of socket protocols
@@ -134,10 +134,10 @@
 
     /** Bind a server socket to a specific port
      *  @param handle   Socket handle
-     *  @param port     The port to listen for incoming connections on
+     *  @param address  Local address to listen for incoming connections on 
      *  @return         0 on success, negative on failure.
      */
-    virtual int socket_bind(void *handle, int port) = 0;
+    virtual int socket_bind(void *handle, const SocketAddress &address) = 0;
 
     /** Start listening for incoming connections
      *  @param handle   Socket handle