Update some comments.

This commit is contained in:
Gregory Nutt 2018-01-24 06:50:20 -06:00 committed by Matt Thompson
parent 58b95f4629
commit bfbedceea0

View File

@ -286,6 +286,10 @@ static sockcaps_t inet_sockcaps(FAR struct socket *psock)
{
#ifdef NET_TCP_HAVE_STACK
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
return SOCKCAP_NONBLOCKING;
#else
@ -295,6 +299,10 @@ static sockcaps_t inet_sockcaps(FAR struct socket *psock)
#ifdef NET_UDP_HAVE_STACK
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
return SOCKCAP_NONBLOCKING;
#else