Skip to content

Commit b7990fe

Browse files
authored
Update socket stats macro name
1 parent f61a195 commit b7990fe

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)