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.
Dependencies: lwip-eth lwip-sys lwip
Fork of LWIPInterface by
Revision 18:5890b186a607, committed 2016-04-20
- Comitter:
- geky
- Date:
- Wed Apr 20 00:48:19 2016 +0000
- Parent:
- 17:7db2f5d503d4
- Commit message:
- Remove is_connect function
Changed in this revision
LWIPInterface.cpp | Show annotated file Show diff for this revision Revisions of this file |
LWIPInterface.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/LWIPInterface.cpp Tue Apr 19 18:38:13 2016 -0500 +++ b/LWIPInterface.cpp Wed Apr 20 00:48:19 2016 +0000 @@ -169,6 +169,7 @@ udp_recv(s->udp, udp_recv_irq, s); *handle = s; + return 0; case NSAPI_TCP: s->proto = proto; @@ -180,6 +181,7 @@ tcp_arg(s->tcp, s); //tcp_err(s->tcp, tcp_error_irq); *handle = s; + return 0; } return NSAPI_ERROR_DEVICE_ERROR; @@ -273,11 +275,6 @@ return 0; } - -bool LWIPInterface::socket_is_connected(void *handle) -{ - return true; -} int LWIPInterface::socket_accept(void **handle, void *server) {
--- a/LWIPInterface.h Tue Apr 19 18:38:13 2016 -0500 +++ b/LWIPInterface.h Wed Apr 20 00:48:19 2016 +0000 @@ -85,12 +85,6 @@ * @return 0 on success, negative on failure */ virtual int socket_connect(void *handle, const SocketAddress &address); - - /** Check if the socket is connected - * @param handle Socket handle - * @return true if connected, false otherwise - */ - virtual bool socket_is_connected(void *handle); /** Accept a new connection. * @param handle Handle in which to store new socket