Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

net_sock.h/net_sock.c

Prototype

Code Block

          CPU_BOOLEAN NetSock_CfgRxQ_Size(NET_SOCK_ID         sock_id,
                                          NET_SOCK_DATA_SIZE  size
                                          NET_ERR            *p_err);

Arguments

sock_id

This is the socket ID of socket to configure receive queue size.

...

  • Limit or remove any received data currently queued but becomes effective for later received data.
  • Partially truncate any received data but instead allows data from exactly one received packet buffer to overflow the configured size since each datagram must be received atomically (see function NetSock_RxData()).

For steam sockets, size may be required to be configured prior to connecting (see function NetTCP_ConnCfgRxWinSize).