Commit Graph

9 Commits (e5c291d3476e368b5dc76bfbcf0bb97b033257b8)

Author SHA1 Message Date
Mika Leppänen e5c291d347 Added version to nsapi get host by name 2016-09-28 08:48:45 +03:00
Christopher Haster 4f7b10f433 nsapi - Moved literal ip parsing out of dns-query
- Not inherently a dns operation
- Able to reuse SocketAddress provided to the NetworkInterface
2016-09-25 22:19:18 -05:00
Christopher Haster d237ee8722 nsapi - Reversed arguments to gethostbyname
Updated to match prior conventions
- netconn_gethostbyname
- gethostbyname_r
- gethostbyname2_r
- gethostbyaddr_r
2016-09-25 22:19:18 -05:00
Christopher Haster 3858a13b75 nsapi - Added access to gethostbyname and add_dns_server
For performing DNS resolution explicitly through the network-socket
user API.

This interface does not require implementation changes and can rely
entirely on the dns query library in the network-socket API.
2016-09-25 22:16:52 -05:00
Christopher Haster dc9ddd42ef [nsapi] Removed unnecessary dns_query functions 2016-08-26 12:16:41 -05:00
Christopher Haster 126df2b4a9 [nsapi] Refactored dns-query to match style of the rest of the nsapi
Internal API changes:
dnsQuery -> nsapi_dns_query

Additionally restructured query code to emit/parse network structures
in stream form to hopefully document the underlying structure more
explicitly.
2016-08-26 12:16:41 -05:00
Colin Hogben 4f731e6b17 network-socket: Re-order args of NetworkStack::accept
Make the argument order more sensible, in line with nsapi.
2016-08-12 17:22:17 +01: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 03c5855496 Add 'features/net/network-socket/' from commit 'e09565474188b905cada21166118a82e66359217'
git-subtree-dir: features/net/network-socket
git-subtree-mainline: db60d6a7f7
git-subtree-split: e095654741
2016-07-21 18:30:42 -05:00