sandbox / LWIPInterface

Dependencies:   lwip-eth lwip-sys lwip

Fork of LWIPInterface by Christopher Haster

Files at this revision

API Documentation at this revision

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