NetworkSocketAPI

Dependencies:   DnsQuery

Dependents:   HelloWizFi250Interface

Fork of NetworkSocketAPI by NetworkSocketAPI

Branch:
api-changes
Revision:
28:163fbe3263f4
Parent:
26:9774a2edad71
Child:
30:3cc78f5db99d
--- a/NetworkInterface.h	Thu Feb 18 09:20:39 2016 -0600
+++ b/NetworkInterface.h	Thu Feb 18 13:19:47 2016 -0600
@@ -20,6 +20,8 @@
 #include "stdint.h"
 #include "SocketInterface.h"
 
+#define SOCK_IP_SIZE 16
+
 
 /** NetworkInterface class
  *  Common interface that is shared between all hardware that
@@ -76,7 +78,6 @@
 
 protected:
     NetworkInterface();
-    virtual ~NetworkInterface();
 
     friend class Socket;
 
@@ -93,9 +94,9 @@
     virtual void destroySocket(SocketInterface *socket) = 0;
 
 private:
-    char *_ip_address;
-    char *_network_mask;
-    char *_gateway;
+    char _ip_address[SOCK_IP_SIZE];
+    char _network_mask[SOCK_IP_SIZE];
+    char _gateway[SOCK_IP_SIZE];
 };
 
 #endif