diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-10-11 08:15:23 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-10-11 08:15:23 -0600 |
commit | ea06ccf99b5d9fb74f1c57f9a6cbc42758f55442 (patch) | |
tree | f710f98791aeeb1a227a85b6d85c60a7b4edcb44 /nuttx/include | |
parent | 4be643e96853f9c88983cbfcf63bccb24f43b7fe (diff) | |
download | px4-nuttx-ea06ccf99b5d9fb74f1c57f9a6cbc42758f55442.tar.gz px4-nuttx-ea06ccf99b5d9fb74f1c57f9a6cbc42758f55442.tar.bz2 px4-nuttx-ea06ccf99b5d9fb74f1c57f9a6cbc42758f55442.zip |
AIO now also supports socket transfers
Diffstat (limited to 'nuttx/include')
-rw-r--r-- | nuttx/include/aio.h | 2 | ||||
-rw-r--r-- | nuttx/include/nuttx/net/net.h | 9 |
2 files changed, 6 insertions, 5 deletions
diff --git a/nuttx/include/aio.h b/nuttx/include/aio.h index b323e01b3..183caec06 100644 --- a/nuttx/include/aio.h +++ b/nuttx/include/aio.h @@ -125,7 +125,7 @@ struct aiocb FAR volatile void *aio_buf; /* Location of buffer */ off_t aio_offset; /* File offset */ size_t aio_nbytes; /* Length of transfer */ -#if CONFIG_NFILE_DESCRIPTORS > 127 +#if (CONFIG_NFILE_DESCRIPTORS + CONFIG_NSOCKET_DESCRIPTORS) > 127 int16_t aio_fildes; /* File descriptor (should be int) */ #else int8_t aio_fildes; /* File descriptor (should be int) */ diff --git a/nuttx/include/nuttx/net/net.h b/nuttx/include/nuttx/net/net.h index f2cf839b3..23558b427 100644 --- a/nuttx/include/nuttx/net/net.h +++ b/nuttx/include/nuttx/net/net.h @@ -302,16 +302,17 @@ void net_initlist(FAR struct socketlist *list); void net_releaselist(FAR struct socketlist *list); /**************************************************************************** - * Name: sockfd_release + * Name: sockfd_socket * * Description: - * Free the socket by its socket descriptor. + * Given a socket descriptor, return the underlying socket structure. * * Input Parameters: - * sockfd - Socket descriptor identifies the socket to be released. + * sockfd - The socket descriptor index o use. * * Returned Value: - * None + * On success, a reference to the socket structure associated with the + * the socket descriptor is returned. NULL is returned on any failure. * ****************************************************************************/ |