Russ Butler
90cd978785
Separate interface from stack in NSAPI
...
This patch consists of:
-Add NetworkInterface to wrap objects bound to a stack and update
socket code to handle this in addition to NetworkStacks
-Update MeshInterface to inherit from NetworkInterface
-Update NanostackInterface so it only inherits from NetworkStack
-Add MeshInterfaceNanostack and update LoWPANNDInterface and
ThreadInterface to inherit from this
2016-07-21 18:20:45 -05:00
Russ Butler
c3baf2792e
Fix SocketAddress constructor to support ipv6
...
Fix typo causing ipv6 addresses in the constructor to fail.
2016-07-21 18:19:21 -05:00
Christopher Haster
3d310c2463
Small bug fixes
...
mirrored from:
https://developer.mbed.org/teams/NetworkSocketAPI/code/NetworkSocketAPI/
- Fix bug with SocketAddress init per @c1728p9
- Fix issue with not passing interface through accept call
- Fix port issue in SocketAddress constructor
2016-07-21 18:19:21 -05:00
Christopher Haster
abd25f9bb3
Added workaround for bug in newlib sscanf
...
https://bugs.launchpad.net/gcc-arm-embedded/+bug/1399224
2016-07-21 18:19:21 -05:00
Christopher Haster
fc71badb69
Rename Interface -> Stack
...
NetworkInterface -> NetworkStack
EthernetInterface -> EthernetStack
WiFiInterface -> WiFiStack
CellularInterface -> CellularStack
MeshInterface -> MeshStack
2016-07-21 18:19:21 -05:00
Christopher Haster
d84f4be6ed
Added support for shortened form ipv6 addresses
...
supported:
1.2.3.4
1:2:3:4:5:6:7:8
1:2::7:8
::
currently not supported:
1:2:3:4:5:6:1.2.3.4
2016-07-21 18:19:21 -05:00
Russ Butler
aea45c88ce
Fix ipv6 addr in SocketAddress
...
Correctly set and return the ipv6 address.
2016-07-21 18:19:21 -05:00
Christopher Haster
bd8cbf0fcb
Move to SocketAddress in gethostbyname
2016-07-21 18:19:21 -05:00
Christopher Haster
3f08f3957c
Added support for storing bytes directly in SocketAddress
...
Bytes are stored by default, however enough space is allocated in
a SocketAddress to generate the string representation if necessary.
Currently there is no support for shortened addresses
2016-07-21 18:19:20 -05:00
Christopher Haster
4c7992cb24
Matched changes NetworkSocketAPI
...
Responded to feedback from mbed-client implementation
to introduce a full feature set that should support most
of the use cases for the API.
2016-07-21 18:19:10 -05:00