NetworkSocketAPI
Dependents: HelloWizFi250Interface
Fork of NetworkSocketAPI by
Diff: NetworkInterface.h
- Revision:
- 6:7437289cb2e9
- Parent:
- 5:fa54ca1af2cd
- Child:
- 7:b147c08301be
--- a/NetworkInterface.h Mon Jun 01 15:21:48 2015 -0500 +++ b/NetworkInterface.h Mon Jun 01 16:21:59 2015 -0500 @@ -41,9 +41,7 @@ * * \returns 0 on success, a negative number on failure */ - int init(const char *ip, const char *mask, const char *gateway) const { - return -1; - } + int init(const char *ip, const char *mask, const char *gateway) const = 0; /** * Start the interface, using DHCP if needed. @@ -52,9 +50,7 @@ * * \returns 0 on success, a negative number on failure */ - virtual int connect(const unsigned int timeout_ms=15000) const { - return -1; - } + virtual int connect(const unsigned int timeout_ms=15000) const = 0; /** * Stop the interface, bringing down dhcp if necessary.