# udp_recvfrom Struct Reference

`#include <socket.h>`

## Data Fields
int16_t | sockid
void * | payload
uint8_t | len
sockaddr_in6_t * | from

## Field Documentation

int16_t udp_recvfrom::sockid

returns the same socket id during call time

void* udp_recvfrom::payload

points to the received message stored in the queue.

uint8_t udp_recvfrom::len

length of the message in number of bytes.

sockaddr_in6_t* udp_recvfrom::from

the socket address of the message's sender.

The documentation for this struct was generated from the following file:

- include/sys/socket.h