![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Control of mbed using OSC. Based on code from the Make Controller. Right now you can turn the onboard LEDs on/off and toggle 8 digital out pins. More I/O will be done in the future.
lwip/TCPItem.h
- Committer:
- pehrhovey
- Date:
- 2010-03-17
- Revision:
- 0:439354122597
File content as of revision 0:439354122597:
#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 */