Structure for socket metadata associated with a read event.

Public Attributes#

uint16_t

2 bytes, the IP version of the IP address (4 for IPv4, 6 for IPv6).

uint16_t

2 bytes, the socket number associated with this read event.

uint32_t

4 bytes, length of data received.

uint16_t

2 bytes, offset of data from the start of the buffer.

uint16_t

2 bytes, port number of the device sending the data to us.

uint8_t

4 bytes, IPv4 Address of the device sending the data to us. Used if ip_version is 4.

uint8_t

16 bytes, IPv6 Address of the device sending the data to us. Used if ip_version is 6.

union sl_si91x_socket_metadata_t::@0

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).


Definition at line 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.


Definition at line 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.


Definition at line 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.


Definition at line 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.


Definition at line 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.


Definition at line 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.


Definition at line 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.


Definition at line 47 of file components/device/silabs/si91x/wireless/socket/inc/sl_si91x_socket_types.h