NetworkSocketAPI

Dependencies:   DnsQuery

Dependents:   HelloWizFi250Interface

Fork of NetworkSocketAPI by NetworkSocketAPI

Revision:
105:2fd212f8da61
Parent:
103:37decbcb1108
Child:
109:5d8bd5752386
diff -r d28d8b508e7c -r 2fd212f8da61 Socket.h
--- a/Socket.h	Tue Apr 19 18:26:21 2016 -0500
+++ b/Socket.h	Tue Apr 19 18:26:36 2016 -0500
@@ -18,7 +18,7 @@
 #define SOCKET_H
 
 #include "SocketAddress.h"
-#include "NetworkInterface.h"
+#include "NetworkStack.h"
 
 /** Abstract socket class
  */
@@ -38,7 +38,7 @@
      *  @param iface    Network stack as target for socket
      *  @return         0 on success, negative error code on failure
      */
-    virtual int open(NetworkInterface *iface) = 0;
+    virtual int open(NetworkStack *iface) = 0;
     
     /** Close the socket
      *
@@ -160,11 +160,11 @@
 
 protected:
     Socket();
-    int open(NetworkInterface *iface, nsapi_protocol_t proto);
+    int open(NetworkStack *iface, nsapi_protocol_t proto);
 
     static void thunk(void *);
 
-    NetworkInterface *_iface;
+    NetworkStack *_iface;
     void *_socket;
     bool _blocking;
     unsigned _timeout;