A library for talking to Multi-Tech's Cellular SocketModem Devices.

Dependents:   M2X_dev axeda_wrapper_dev MTS_M2x_Example1 MTS_Cellular_Connect_Example ... more

Revision:
146:efc4db23a564
Parent:
141:571e0ef6c8dc
--- a/Socket/Transport.h	Wed Jan 15 19:26:13 2014 +0000
+++ b/Socket/Transport.h	Mon Jan 20 15:33:54 2014 +0000
@@ -35,7 +35,7 @@
 public:
     ///An enumeration that holds the supported Transport Types.
     enum TransportType {
-        CELLULAR, WIFI, NONE
+        CELLULAR, WIFI, NONE, CUSTOM
     };
     
     /** This method allows you to set the transport to be used when creating other 
@@ -45,6 +45,15 @@
     */
     static void setTransport(TransportType type);
     
+    /** This method allows you to set the transport to be used when creatin other
+    * objects from the Socket folder like TCPSocketConnection and UDPSocket. It
+    * differs from the other setTransport method in that it allows for any transport
+    * that derives from IPStack to be used with the native mbed Socket interfaces.
+    *
+    * @param type the type of underlying transport to be used as an IPStack object.
+    */
+    static void setTransport(IPStack* type);
+    
     /** This method is used within the Socket class to get the appropraite transport
     * as an IPStack object.  In general you do not need to call this directly, but
     * simply use the other classes in this folder. 
@@ -55,6 +64,7 @@
     
 private:
     static Transport::TransportType _type; // Member variable that holds the desired transport
+    static IPStack* customType; //Member variable that holds an custom transport type.
 };
 
 #endif /* TRANSPORT_H */
\ No newline at end of file