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: NetworkInterface.h
- Branch:
- api-changes
- Revision:
- 28:163fbe3263f4
- Parent:
- 26:9774a2edad71
- Child:
- 30:3cc78f5db99d
diff -r d7ed39727306 -r 163fbe3263f4 NetworkInterface.h
--- 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
