@@ -52,26 +52,26 @@ class DNS {
52
52
*/
53
53
typedef mbed::Callback<void (nsapi_error_t result, SocketAddress *address)> hostbyname_cb_t ;
54
54
55
- /* * Translate a hostname to an IP address (asynchronous)
55
+ /* * Translate a hostname to an IP address (asynchronous).
56
56
*
57
57
* The hostname may be either a domain name or an IP address. If the
58
58
* hostname is an IP address, no network transactions will be performed.
59
59
*
60
60
* If no stack-specific DNS resolution is provided, the hostname
61
- * will be resolve using a UDP socket on the stack.
61
+ * will be resolved using a UDP socket on the stack.
62
62
*
63
63
* Call is non-blocking. Result of the DNS operation is returned by the callback.
64
- * If this function returns failure, callback will not be called. In case result
65
- * is success (IP address was found from DNS cache), callback will be called
64
+ * If this function returns failure, callback will not be called. If it is successful,
65
+ * (IP address was found from DNS cache), callback will be called
66
66
* before function returns.
67
67
*
68
68
* @param host Hostname to resolve.
69
69
* @param callback Callback that is called to return the result.
70
- * @param version IP version of address to resolve, NSAPI_UNSPEC indicates
70
+ * @param version IP version of address to resolve. NSAPI_UNSPEC indicates
71
71
* version is chosen by the stack (defaults to NSAPI_UNSPEC).
72
72
* @return NSAPI_ERROR_OK on immediate success,
73
73
* negative error code on immediate failure or
74
- * a positive unique id that represents the hostname translation operation
74
+ * a positive unique ID that represents the hostname translation operation
75
75
* and can be passed to cancel.
76
76
*/
77
77
virtual nsapi_value_or_error_t gethostbyname_async (const char *host, hostbyname_cb_t callback,
@@ -86,7 +86,7 @@ class DNS {
86
86
*/
87
87
virtual nsapi_error_t gethostbyname_async_cancel (int id) = 0;
88
88
89
- /* * Add a domain name server to list of servers to query
89
+ /* * Add a domain name server to list of servers to query.
90
90
*
91
91
* @param address DNS server host address.
92
92
* @return NSAPI_ERROR_OK on success, negative error code on failure.
0 commit comments