NetworkSocketAPI
Dependents: HelloWizFi250Interface
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;