Skip to content

Commit 2b043ce

Browse files
committed
Fixed ambiguity errors from conflicting member functions
Defined in both NetworkInterface and NetworkStack: - gethostbyname - add_dns_server
1 parent dc37b65 commit 2b043ce

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

ESP8266Interface.h

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,29 @@ class ESP8266Interface : public NetworkStack, public WiFiInterface
124124
*/
125125
virtual int scan(WiFiAccessPoint *res, unsigned count);
126126

127+
/** Translates a hostname to an IP address with specific version
128+
*
129+
* The hostname may be either a domain name or an IP address. If the
130+
* hostname is an IP address, no network transactions will be performed.
131+
*
132+
* If no stack-specific DNS resolution is provided, the hostname
133+
* will be resolve using a UDP socket on the stack.
134+
*
135+
* @param address Destination for the host SocketAddress
136+
* @param host Hostname to resolve
137+
* @param version IP version of address to resolve, NSAPI_UNSPEC indicates
138+
* version is chosen by the stack (defaults to NSAPI_UNSPEC)
139+
* @return 0 on success, negative error code on failure
140+
*/
141+
using NetworkInterface::gethostbyname;
142+
143+
/** Add a domain name server to list of servers to query
144+
*
145+
* @param addr Destination for the host address
146+
* @return 0 on success, negative error code on failure
147+
*/
148+
using NetworkInterface::add_dns_server;
149+
127150
protected:
128151
/** Open a socket
129152
* @param handle Handle in which to store new socket

0 commit comments

Comments
 (0)