Mbed OS Reference
Loading...
Searching...
No Matches
mbed_stats_socket_t Struct Reference

Structure to parse socket statistics. More...

#include <SocketStats.h>

Data Fields

Socketreference_id
 Used for identifying socket. More...
 
SocketAddress peer
 Last associated peername of this socket (Destination address) More...
 
socket_state state
 State of this socket. More...
 
nsapi_protocol_t proto
 Specifies a protocol used with socket. More...
 
size_t sent_bytes
 Data sent through this socket. More...
 
size_t recv_bytes
 Data received through this socket. More...
 
us_timestamp_t last_change_tick
 osKernelGetTick() when state last changed More...
 

Detailed Description

Structure to parse socket statistics.

Definition at line 46 of file SocketStats.h.

Field Documentation

◆ reference_id

Socket* reference_id

Used for identifying socket.

Definition at line 47 of file SocketStats.h.

◆ peer

Last associated peername of this socket (Destination address)

Definition at line 48 of file SocketStats.h.

◆ state

socket_state state

State of this socket.

Definition at line 49 of file SocketStats.h.

◆ proto

nsapi_protocol_t proto

Specifies a protocol used with socket.

Definition at line 50 of file SocketStats.h.

◆ sent_bytes

size_t sent_bytes

Data sent through this socket.

Definition at line 51 of file SocketStats.h.

◆ recv_bytes

size_t recv_bytes

Data received through this socket.

Definition at line 52 of file SocketStats.h.

◆ last_change_tick

us_timestamp_t last_change_tick

osKernelGetTick() when state last changed

Definition at line 53 of file SocketStats.h.