Mbed OS Reference
Loading...
Searching...
No Matches
SocketStats Class Reference

SocketStats class. More...

#include <SocketStats.h>

Static Public Member Functions

static size_t mbed_stats_socket_get_each (mbed_stats_socket_t *stats, size_t count)
 Fill the passed array of structures with the socket statistics for each created socket. More...
 

Detailed Description

SocketStats class.

Class to get the network socket statistics

Definition at line 60 of file SocketStats.h.

Member Function Documentation

◆ mbed_stats_socket_get_each()

static size_t mbed_stats_socket_get_each ( mbed_stats_socket_t stats,
size_t  count 
)
static

Fill the passed array of structures with the socket statistics for each created socket.

Parameters
statsA pointer to an array of mbed_stats_socket_t structures to fill
countThe number of mbed_stats_socket_t structures in the provided array
Returns
The number of mbed_stats_socket_t structures that have been filled. If the number of sockets on the system is less than or equal to count, it will equal the number of sockets created (active or closed). If the number of sockets on the system is greater than count, it will equal count.