Port of LwIP performed by Ralf in 2010. Not recommended for use with recent mbed libraries, but good demos of raw LwIP possible

Dependents:   LwIP_raw_API_serverExample tiny-dtls

Revision:
0:0791c1fece8e
diff -r 000000000000 -r 0791c1fece8e Core/TCPItem.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Core/TCPItem.h	Tue Sep 18 14:41:24 2012 +0000
@@ -0,0 +1,32 @@
+#ifndef TCPITEM_H
+#define TCPITEM_H
+
+#include "arch/cc.h"
+#include "lwip/err.h"
+#include "lwip/tcp.h"
+
+namespace mbed {
+  class NetServer;
+
+  /**
+   * A simple object which provides the base for all TCP enabled objects.
+   * Do not ues it directly unless you know what you doing. 
+   * Normaly what you want to use is TCPListener or TCPConnector.
+   */
+  class TCPItem {
+    public:
+      TCPItem() : _pcb(NULL) {}
+      TCPItem(struct tcp_pcb *pcb) : _pcb(pcb) {}
+      virtual ~TCPItem() {}
+      
+      void abort() const;
+      void release_callbacks() const;
+      err_t close();
+      void open();
+    protected:
+      struct tcp_pcb *_pcb;
+  };
+
+};
+
+#endif /* TCPITEM_H */