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.
Diff: TcpServer.cpp
- Revision:
- 10:e4ddab81e6a8
- Parent:
- 9:a156d3de5647
- Child:
- 11:647d53d146f1
diff -r a156d3de5647 -r e4ddab81e6a8 TcpServer.cpp
--- 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