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

Committer:
RodColeman
Date:
Tue Sep 18 14:41:24 2012 +0000
Revision:
0:0791c1fece8e
[mbed] converted /Eth_TCP_Wei_Server/lwip

Who changed what in which revision?

UserRevisionLine numberNew contents of line
RodColeman 0:0791c1fece8e 1 #ifndef TCPITEM_H
RodColeman 0:0791c1fece8e 2 #define TCPITEM_H
RodColeman 0:0791c1fece8e 3
RodColeman 0:0791c1fece8e 4 #include "arch/cc.h"
RodColeman 0:0791c1fece8e 5 #include "lwip/err.h"
RodColeman 0:0791c1fece8e 6 #include "lwip/tcp.h"
RodColeman 0:0791c1fece8e 7
RodColeman 0:0791c1fece8e 8 namespace mbed {
RodColeman 0:0791c1fece8e 9 class NetServer;
RodColeman 0:0791c1fece8e 10
RodColeman 0:0791c1fece8e 11 /**
RodColeman 0:0791c1fece8e 12 * A simple object which provides the base for all TCP enabled objects.
RodColeman 0:0791c1fece8e 13 * Do not ues it directly unless you know what you doing.
RodColeman 0:0791c1fece8e 14 * Normaly what you want to use is TCPListener or TCPConnector.
RodColeman 0:0791c1fece8e 15 */
RodColeman 0:0791c1fece8e 16 class TCPItem {
RodColeman 0:0791c1fece8e 17 public:
RodColeman 0:0791c1fece8e 18 TCPItem() : _pcb(NULL) {}
RodColeman 0:0791c1fece8e 19 TCPItem(struct tcp_pcb *pcb) : _pcb(pcb) {}
RodColeman 0:0791c1fece8e 20 virtual ~TCPItem() {}
RodColeman 0:0791c1fece8e 21
RodColeman 0:0791c1fece8e 22 void abort() const;
RodColeman 0:0791c1fece8e 23 void release_callbacks() const;
RodColeman 0:0791c1fece8e 24 err_t close();
RodColeman 0:0791c1fece8e 25 void open();
RodColeman 0:0791c1fece8e 26 protected:
RodColeman 0:0791c1fece8e 27 struct tcp_pcb *_pcb;
RodColeman 0:0791c1fece8e 28 };
RodColeman 0:0791c1fece8e 29
RodColeman 0:0791c1fece8e 30 };
RodColeman 0:0791c1fece8e 31
RodColeman 0:0791c1fece8e 32 #endif /* TCPITEM_H */