Structure for socket metadata associated with a read event.
Public Attributes#
2 bytes, the IP version of the IP address (4 for IPv4, 6 for IPv6).
2 bytes, the socket number associated with this read event.
4 bytes, length of data received.
2 bytes, offset of data from the start of the buffer.
2 bytes, port number of the device sending the data to us.
4 bytes, IPv4 Address of the device sending the data to us. Used if ip_version is 4.
16 bytes, IPv6 Address of the device sending the data to us. Used if ip_version is 6.
Union for IPv4 or IPv6 address, depending on ip_version.
Public Attribute Documentation#
ip_version#
uint16_t sl_si91x_socket_metadata_t::ip_version
2 bytes, the IP version of the IP address (4 for IPv4, 6 for IPv6).
33
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
2 bytes, the socket number associated with this read event.
35
of file components/device/silabs/si91x/wireless/socket/inc/sl_si91x_socket_types.h
length#
uint32_t sl_si91x_socket_metadata_t::length
4 bytes, length of data received.
37
of file components/device/silabs/si91x/wireless/socket/inc/sl_si91x_socket_types.h
offset#
uint16_t sl_si91x_socket_metadata_t::offset
2 bytes, offset of data from the start of the buffer.
39
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
2 bytes, port number of the device sending the data to us.
41
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]
4 bytes, IPv4 Address of the device sending the data to us. Used if ip_version is 4.
44
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 sending the data to us. Used if ip_version is 6.
46
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.
47
of file components/device/silabs/si91x/wireless/socket/inc/sl_si91x_socket_types.h