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.
Dependencies: DnsQuery
Dependents: WizFi310_TCP_Echo_Server_Example
Fork of NetworkSocketAPI by
Diff: NetworkInterface.cpp
- Branch:
- api-changes
- Revision:
- 42:49893d13c432
- Parent:
- 41:3ec1c97e9bbf
- Child:
- 43:09ea32f2eb54
--- a/NetworkInterface.cpp Tue Feb 23 04:01:38 2016 -0600 +++ b/NetworkInterface.cpp Tue Feb 23 05:07:02 2016 -0600 @@ -22,16 +22,16 @@ NetworkInterface::NetworkInterface() : _timeout(15000) { - memset(_ip_address, 0, SOCK_IP_SIZE); - memset(_network_mask, 0, SOCK_IP_SIZE); - memset(_gateway, 0, SOCK_IP_SIZE); + memset(_ip_address, 0, NS_IP_SIZE); + memset(_network_mask, 0, NS_IP_SIZE); + memset(_gateway, 0, NS_IP_SIZE); } void NetworkInterface::useDHCP() { - memset(_ip_address, 0, SOCK_IP_SIZE); - memset(_network_mask, 0, SOCK_IP_SIZE); - memset(_gateway, 0, SOCK_IP_SIZE); + memset(_ip_address, 0, NS_IP_SIZE); + memset(_network_mask, 0, NS_IP_SIZE); + memset(_gateway, 0, NS_IP_SIZE); } void NetworkInterface::setIPAddress(const char *ip)