Skip to content

Commit 586f255

Browse files
author
Amanda Butler
authored
Merge pull request #923 from ARMmbed/kegilbert-patch-3
Update socket stats macro name
2 parents c73099a + 2cb1e24 commit 586f255

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api/networksocket/SocketStats.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## SocketStats
22

3-
Use the SocketStats class to read the network socket statistics. When statistics are enabled, you can create the SocketStats class object with the `InternetSocket` class by using the `nsapi.socket-stats-enable` configuration option.
3+
Use the SocketStats class to read the network socket statistics. When statistics are enabled, you can create the SocketStats class object with the `InternetSocket` class by using the `nsapi.socket-stats-enabled` configuration option.
44

55
The `SocketStats` class provides the static function `mbed_stats_socket_get_each` to get the network socket information for all sockets both currently in use and closed. Using this function, you can know how many sockets are open, destination IP addresses, the amount of data sent and received in bytes, the type of socket and the timestamp of recent "socket state" changes recorded in `last_change_tick`.
66

0 commit comments

Comments
 (0)