Sarah Marsh / C027Interface(p)

Dependencies:   C027_Support(p)

Fork of C027Interface by NetworkSocketAPI

Revision:
16:15fa9d47f458
Parent:
15:21d4f56eb172
Child:
18:529fe9a37e0e
--- a/C027Interface.h	Tue Apr 26 20:34:29 2016 +0000
+++ b/C027Interface.h	Thu Sep 29 20:44:10 2016 +0000
@@ -155,6 +155,15 @@
      *  @note Callback may be called in an interrupt context.
      */
     virtual void socket_attach(void *handle, void (*callback)(void *), void *data);
+    
+    /** Provide access to the NetworkStack object
+     *
+     *  @return The underlying NetworkStack object
+     */
+    virtual NetworkStack *get_stack()
+    {
+        return this;
+    }
 
 private:
     // Modem object