Sam Grove
3c33e4f9e3
Merge pull request #2722 from geky/nsapi-rst
...
lwip - Fixed error code on disconnect TCP socket
2016-09-18 17:47:34 -05:00
Sam Grove
1a91c1cc1d
Merge pull request #2561 from geky/nsapi-network-state
...
lwip - Add checks for invalid state of network
2016-09-16 17:20:34 -05:00
Christopher Haster
b7d9b28bc4
lwip - Fixed error code on disconnect TCP socket
...
Fixed to return 0 on successful shutdown
2016-09-15 15:19:40 -05:00
Sam Grove
a35cd7f81f
Merge pull request #2579 from geky/nsapi-max-socket-accept
...
lwip - Fix handling of max sockets in socket_accept
2016-09-10 07:11:20 -05:00
Christopher Haster
c3130e51e4
lwip - Added check for previously-bound socket
...
Avoids what turns into an infinite loop in lwip's internals
2016-08-29 18:47:30 -05:00
Christopher Haster
506aa3d4ea
lwip - Fixed handling of max sockets in socket_accept
2016-08-29 17:37:13 -05:00
Christopher Haster
98ec80c484
lwip - Added checks for invalid state of network
...
- Check if disconnected in socket open
- Check if connected in interface connect
- Check if disconnected in interface disconnect
2016-08-26 15:35:26 -05:00
Christopher Haster
a3ecdf3b71
[nsapi] Adopted netconn_gethostbyname in the lwip interface
...
Provides proper integration with DHCP through lwip
2016-08-26 12:16:41 -05:00
Russ Butler
2c02e58853
LWIP - fix recv blocking send on accepted sockets
...
When a socket is created via accept set the mode to nonblocking -
a timeout of 1ms. This allows send and recv to occur at the same time.
2016-08-19 16:23:12 -05:00
Martin Kojtal
da69629cd8
Merge pull request #2434 from infinnovation/socket-accept-address
...
network-socket: Optionally return peer address from accept().
2016-08-19 11:31:17 +01:00
Christopher Haster
de9e221775
[nsapi] Added support for NSAPI_REUSEADDR to the lwip interface
2016-08-12 18:43:42 -05:00
Colin Hogben
36bf4827c7
network-socket: Optionally return peer address from accept().
...
Fixes issue #2399 by optionally returning a SocketAddress from
TCPServer::accept().
This entails changes to underlying NetworkStack and nsapi. This
commit deals only with lwip and higher level APIs; other users of
NetworkStack and nsapi may be affected. Currently lwip is the only
in-tree user of nsapi.
2016-08-12 10:50:52 +01:00
Christopher Haster
06826a935d
Fixed issue with reconnecting the ethernet interface
...
Previously the EthernetInterface class was unable to be connected
after being brought down. The core issue is that lwip was not designed
to be completely brought down due once initialized.
To work around this, the ethernet interface only initializes once and
leaves itself up after a disconnect call. The DHCP lease is still
released/acquired on disconnect/connect.
2016-08-02 13:33:13 -05:00
Russ Butler
ebf42f02e9
Add includes so lwip compiles
2016-07-22 18:35:37 -05:00
Christopher Haster
1fcc02318a
Add 'features/net/FEATURE_IPV4/lwip-interface/' from commit '63e816f0858cf3de3678aea4deec941add516790'
...
git-subtree-dir: features/net/FEATURE_IPV4/lwip-interface
git-subtree-mainline: 83f24fb0bd
git-subtree-split: 63e816f085
2016-07-22 02:04:56 -05:00