@@ -86,23 +86,30 @@ class InternetSocket : public Socket {
86
86
*/
87
87
int leave_multicast_group (const SocketAddress &address);
88
88
89
- /* * Get estimated latency to reach destination address.
89
+ /* * Get estimated round trip time to destination address.
90
90
*
91
- * @param address Destination address to estimate latency.
92
- * @param latency Returned latency value in milliseconds.
91
+ * Use estimated round trip time to adjust application retry timers to work in networks
92
+ * that have low data rate and high latency.
93
+ *
94
+ * @param address Destination address to use in rtt estimate.
95
+ * @param rtt_estimate Returned round trip time value in milliseconds.
93
96
* @return NSAPI_ERROR_OK on success.
94
97
* @return NSAPI_ERROR_PARAMETER if the provided pointer is invalid.
95
98
* @return negative error code on other failures (@see InternetSocket::getsockopt).
96
99
*/
97
- int get_latency_estimate_to_address (const SocketAddress &address, uint32_t *latency );
100
+ int get_rtt_estimate_to_address (const SocketAddress &address, uint32_t *rtt_estimate );
98
101
99
- /* * Get estimated stagger value to reach destination address.
102
+ /* * Get estimated stagger value.
103
+ *
104
+ * Stagger value is a time that application should wait before using heavy network operations after connecting to network.
105
+ * Purpose of staggering is to avoid network congestion that may happen in low bandwith networks if multiple
106
+ * applications simultaneously start heavy network usage after joining to the network.
100
107
*
101
- * @param address Address to estimate stagger values .
108
+ * @param address Destination added used to estimate stagger value .
102
109
* @param data_amount Amount of bytes to transfer in kilobytes.
103
110
* @param stagger_min Minimum stagger value in seconds.
104
111
* @param stagger_max Maximum stagger value in seconds.
105
- * @param stagger_rand Randomized stagger value in seconds.
112
+ * @param stagger_rand Randomized stagger value between stagger_min and stagger_max in seconds.
106
113
* @return NSAPI_ERROR_OK on success.
107
114
* @return negative error code on other failures (@see InternetSocket::getsockopt).
108
115
*/
0 commit comments