A version of LWIP, provided for backwards compatibility.

Dependents:   AA_DemoBoard DemoBoard HelloServerDemo DemoBoard_RangeIndicator ... more

Committer:
root@mbed.org
Date:
Tue May 08 15:32:10 2012 +0100
Revision:
0:5e1631496985
initial commit

Who changed what in which revision?

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