A new object oriented network api that can be used to replace the one provided by the EthernetInterface library.

Dependents:   NetRelais TCP_Client_Example TCP_Server_Example UDP_Server_Example ... more

Object oriented network interface for the mbed platform

Currently implemented:

  • Address
  • Endpoint
  • UDP Socket
  • TCP Socket
  • Databuffer
  • Select API

It depends on the EthernetInterface for the lwip network stack.

Please do not hesitate to contact me with any remarks, improvements or questions.

The API is also available for unix at GitHub: LibNosa

Examples

Revision:
4:d854fa394f85
Parent:
3:d30db8752485
Child:
8:cdee0f2b6ff0
diff -r d30db8752485 -r d854fa394f85 socket.hpp
--- a/socket.hpp	Wed Jul 18 11:22:37 2012 +0000
+++ b/socket.hpp	Wed Jul 18 13:20:32 2012 +0000
@@ -60,8 +60,8 @@
             virtual ~Socket();
             
             virtual int open();
-            virtual int close();
-            virtual int bind(int port);
+            int close();
+            int bind(int port);
             
             ip::Endpoint &getRemoteEndpoint();
             ip::Endpoint &getLocalEndpoint();