Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: LwIP_raw_API_serverExample tiny-dtls
TCPItem.cpp
00001 #include "TCPItem.h" 00002 00003 using namespace std; 00004 using namespace mbed; 00005 00006 void TCPItem::abort() const { 00007 tcp_abort(this->_pcb); 00008 } 00009 00010 void TCPItem::release_callbacks() const { 00011 tcp_arg(this->_pcb, NULL); 00012 tcp_sent(this->_pcb, NULL); 00013 tcp_recv(this->_pcb, NULL); 00014 tcp_poll(this->_pcb, NULL, 255); 00015 tcp_accept(this->_pcb, NULL); 00016 tcp_err(this->_pcb, NULL); 00017 } 00018 00019 err_t TCPItem::close() { 00020 err_t err = tcp_close(this->_pcb); 00021 this->_pcb = NULL; 00022 return err; 00023 } 00024 00025 void TCPItem::open() { 00026 if(!this->_pcb) { 00027 this->_pcb = tcp_new(); 00028 tcp_arg(this->_pcb, this); 00029 } 00030 }
Generated on Tue Jul 12 2022 18:50:03 by
1.7.2