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:
- 23:1e86d9fb3d86
- Parent:
- 21:35ed15069189
- Child:
- 25:ed7b2a52e8ac
diff -r 4fca633c0633 -r 1e86d9fb3d86 NetworkInterface.h
--- a/NetworkInterface.h Thu Feb 18 03:29:39 2016 -0600
+++ b/NetworkInterface.h Thu Feb 18 04:05:09 2016 -0600
@@ -28,7 +28,8 @@
class NetworkInterface
{
public:
- virtual ~NetworkInterface() = default;
+ NetworkInterface();
+ virtual ~NetworkInterface();
/** Enables DHCP and clears any static address
@@ -75,7 +76,7 @@
/** Get the current status of the interface
@return true if connected
*/
- virtual bool isConnected(void) = 0;
+ virtual bool isConnected(void);
private:
@@ -95,9 +96,9 @@
virtual void destroySocket(SocketInterface *socket) = 0;
private:
- const char *_ip_address;
- const char *_network_mask;
- const char *_gateway;
+ char *_ip_address;
+ char *_network_mask;
+ char *_gateway;
};
#endif
