Update some comments.
This commit is contained in:
parent
82cb799bb6
commit
5e49e9e937
|
@ -286,6 +286,10 @@ static sockcaps_t inet_sockcaps(FAR struct socket *psock)
|
||||||
{
|
{
|
||||||
#ifdef NET_TCP_HAVE_STACK
|
#ifdef NET_TCP_HAVE_STACK
|
||||||
case SOCK_STREAM:
|
case SOCK_STREAM:
|
||||||
|
/* REVISIT: Non-blocking recv() depends on CONFIG_NET_TCP_READAHEAD,
|
||||||
|
* but non-blocking send() depends on CONFIG_NET_TCP_WRITE_BUFFERS.
|
||||||
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_NET_TCP_READAHEAD
|
#ifdef CONFIG_NET_TCP_READAHEAD
|
||||||
return SOCKCAP_NONBLOCKING;
|
return SOCKCAP_NONBLOCKING;
|
||||||
#else
|
#else
|
||||||
|
@ -295,6 +299,10 @@ static sockcaps_t inet_sockcaps(FAR struct socket *psock)
|
||||||
|
|
||||||
#ifdef NET_UDP_HAVE_STACK
|
#ifdef NET_UDP_HAVE_STACK
|
||||||
case SOCK_DGRAM:
|
case SOCK_DGRAM:
|
||||||
|
/* REVISIT: Non-blocking recvfrom() depends on CONFIG_NET_UDP_READAHEAD,
|
||||||
|
* but non-blocking sendto() depends on CONFIG_NET_UDP_WRITE_BUFFERS.
|
||||||
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_NET_UDP_READAHEAD
|
#ifdef CONFIG_NET_UDP_READAHEAD
|
||||||
return SOCKCAP_NONBLOCKING;
|
return SOCKCAP_NONBLOCKING;
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue