123

Revision:
10:e4ddab81e6a8
Parent:
9:a156d3de5647
Child:
11:647d53d146f1
--- a/TcpServer.cpp	Tue Aug 27 15:01:10 2019 +0000
+++ b/TcpServer.cpp	Tue Aug 27 22:08:54 2019 +0000
@@ -49,11 +49,13 @@
                 ((data->state & UIP_CLIENT_REMOTECLOSED) && ((uip_userdata_closed_t*)data)->lport == _port)
             )
         ) {
+            data->ripaddr[0] =  uip_conns[data->state & UIP_CLIENT_SOCKETS].ripaddr[0];
+            data->ripaddr[1] =  uip_conns[data->state & UIP_CLIENT_SOCKETS].ripaddr[1];
             return(new TcpClient(data));
         }
     }
 
-    return(new TcpClient());
+    return NULL;
 }
 
 /**
@@ -63,9 +65,7 @@
  * @retval
  */
 void TcpServer::open(UipEthernet* ethernet)
-{
-    //UIPEthernet::ethernet = ethernet;
-}
+{ }
 
 /**
  * @brief