NetworkSocketAPI

Dependencies:   DnsQuery

Dependents:   HelloWizFi250Interface

Fork of NetworkSocketAPI by NetworkSocketAPI

Files at this revision

API Documentation at this revision

Comitter:
austin.blackstone@arm.com
Date:
Mon Jun 01 16:21:59 2015 -0500
Parent:
5:fa54ca1af2cd
Child:
7:b147c08301be
Commit message:
made all functions pure virtual

Changed in this revision

NetworkInterface.h Show annotated file Show diff for this revision Revisions of this file
--- 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.