@@ -39,7 +39,7 @@ class DNS {
39
39
40
40
/* * Hostname translation callback for gethostbyname_async.
41
41
*
42
- * Callback will be called after DNS resolution completes or a failure occurs.
42
+ * The callback is called after DNS resolution completes, or a failure occurs.
43
43
*
44
44
* Callback should not take more than 10ms to execute, otherwise it might
45
45
* prevent underlying thread processing. A portable user of the callback
@@ -60,14 +60,14 @@ class DNS {
60
60
* If no stack-specific DNS resolution is provided, the hostname
61
61
* will be resolved using a UDP socket on the stack.
62
62
*
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. If it is successful,
65
- * (IP address was found from DNS cache), callback will be called
66
- * before function returns.
63
+ * The call is non-blocking. The result of the DNS operation is returned by the callback.
64
+ * If this function returns failure, the callback will not be called. If it is successful,
65
+ * (the IP address was found from the DNS cache), the callback will be called
66
+ * before the 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 that the
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
@@ -79,9 +79,9 @@ class DNS {
79
79
80
80
/* * Cancel asynchronous hostname translation.
81
81
*
82
- * When translation is cancelled , callback will not be called.
82
+ * When translation is canceled , callback is not called.
83
83
*
84
- * @param id Unique id of the hostname translation operation returned by gethostbyname_async.
84
+ * @param id Unique ID of the hostname translation operation returned by gethostbyname_async.
85
85
* @return NSAPI_ERROR_OK on success, negative error code on failure.
86
86
*/
87
87
virtual nsapi_error_t gethostbyname_async_cancel (int id) = 0;
0 commit comments