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.
Dependencies: DnsQuery
Dependents: WizFi310_TCP_Echo_Server_Example
Fork of NetworkSocketAPI by
Diff: NetworkInterface.h
- Revision:
- 60:0360cb987da3
- Parent:
- 59:badee747a030
- Child:
- 63:531f4c27f360
--- a/NetworkInterface.h Thu Feb 25 21:52:57 2016 -0600 +++ b/NetworkInterface.h Thu Feb 25 22:02:08 2016 -0600 @@ -52,24 +52,14 @@ /** Get the IP address - * @return IP address of the interface - */ - virtual const char *getIPAddress(); - - /** Get the network mask - * @return Network mask of the interface + * @return IP address of the interface or 0 if not yet connected */ - virtual const char *getNetworkMask(); - - /** Get the gateway - * @return Gateway address of the interface - */ - virtual const char *getGateway(); + virtual const char *getIPAddress() = 0; /** Get the current MAC address * @return String MAC address of the interface */ - virtual const char *getMACAddress(); + virtual const char *getMACAddress() = 0; /** Get the current status of the interface * @return true if connected @@ -84,6 +74,7 @@ */ virtual int32_t getHostByName(const char *name, char *ip); + protected: friend class Socket;