Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: DebugLib Socket lwip lwip-sys
Fork of NetworkingCoreLib by
Diff: main/if/IPInterface.h
- Revision:
- 8:387f573a6813
- Parent:
- 1:240e3322b87a
- Child:
- 10:14ef6ceb4e75
--- a/main/if/IPInterface.h Tue Jun 12 10:08:54 2012 +0000
+++ b/main/if/IPInterface.h Fri Jun 15 14:17:23 2012 +0000
@@ -32,22 +32,22 @@
class IPInterface
{
public:
- IPInterface();
- virtual ~IPInterface();
+ IPInterface();
+ virtual ~IPInterface();
- virtual int init() = 0; //Initialize interface; no connection should be performed at this stage
- virtual int connect() = 0; //Do connect the interface
- virtual int disconnect() = 0;
- //It is encouraged that the derived class implement a "setup(...)" function to configure the interface before the connection
+ //int init(); //Initialize interface; no connection should be performed at this stage
+ //int connect(); //Do connect the interface
+ //int disconnect();
+ //It is encouraged that the derived class implement a "setup(...)" function to configure the interface before the connection
- static IPInterface* getDefaultInterface(); //For use by TCP, UDP sockets library
+ static IPInterface* getDefaultInterface(); //For use by TCP, UDP sockets library
- //WARN: Implementation will have to be more careful in case of multiple interfaces (or implement a routing protocol based on local IP addresses differentiation)
- void registerAsDefaultInterface(); //First come, first served
- void unregisterAsDefaultInterface(); //Must be called before inst is destroyed to avoid invalid ptr fault
+ //WARN: Implementation will have to be more careful in case of multiple interfaces (or implement a routing protocol based on local IP addresses differentiation)
+ void registerAsDefaultInterface(); //First come, first served
+ void unregisterAsDefaultInterface(); //Must be called before inst is destroyed to avoid invalid ptr fault
private:
- static IPInterface* s_pDefaultInterface;
+ static IPInterface* s_pDefaultInterface;
};
#endif /* IPINTERFACE_H_ */
