Structure for socket metadata associated with read event.
The structure holds the metadata information for the socket's read event. It includes the following details such as: IP version, socket ID, length of data received, offset within the buffer, destination port, and the IP address of the sender device. The IP address can be either IPv4 or IPv6, determined by the ip_version
field.
Public Attributes#
Two bytes for the IP version of the IP address, four bytes for the IPv4, and six bytes for the IPv6.
The socket number associated with the read event is two bytes.
Four bytes. Length of received data.
Two bytes. Offset data from the start of the buffer.
Two bytes. Port number of the device which sends data to the destination.
Four bytes. IPv4 address of the device which sends data. Used if ip_version is four.
16 bytes. IPv6 address of the device which sends data. Used if ip_version is six.
Union for IPv4 or IPv6 address, depending on ip_version.
Public Attribute Documentation#
ip_version#
uint16_t sl_si91x_socket_metadata_t::ip_version
Two bytes for the IP version of the IP address, four bytes for the IPv4, and six bytes for the IPv6.
55
of file components/device/silabs/si91x/wireless/socket/inc/sl_si91x_socket_types.h
socket_id#
uint16_t sl_si91x_socket_metadata_t::socket_id
The socket number associated with the read event is two bytes.
57
of file components/device/silabs/si91x/wireless/socket/inc/sl_si91x_socket_types.h
length#
uint32_t sl_si91x_socket_metadata_t::length
Four bytes. Length of received data.
59
of file components/device/silabs/si91x/wireless/socket/inc/sl_si91x_socket_types.h
offset#
uint16_t sl_si91x_socket_metadata_t::offset
Two bytes. Offset data from the start of the buffer.
61
of file components/device/silabs/si91x/wireless/socket/inc/sl_si91x_socket_types.h
dest_port#
uint16_t sl_si91x_socket_metadata_t::dest_port
Two bytes. Port number of the device which sends data to the destination.
63
of file components/device/silabs/si91x/wireless/socket/inc/sl_si91x_socket_types.h
ipv4_address#
uint8_t sl_si91x_socket_metadata_t::ipv4_address[4]
Four bytes. IPv4 address of the device which sends data. Used if ip_version is four.
66
of file components/device/silabs/si91x/wireless/socket/inc/sl_si91x_socket_types.h
ipv6_address#
uint8_t sl_si91x_socket_metadata_t::ipv6_address[16]
16 bytes. IPv6 address of the device which sends data. Used if ip_version is six.
68
of file components/device/silabs/si91x/wireless/socket/inc/sl_si91x_socket_types.h
dest_ip_addr#
union sl_si91x_socket_metadata_t::@0 sl_si91x_socket_metadata_t::dest_ip_addr
Union for IPv4 or IPv6 address, depending on ip_version.
69
of file components/device/silabs/si91x/wireless/socket/inc/sl_si91x_socket_types.h