AIO now also supports socket transfers

This commit is contained in:
Gregory Nutt
2014-10-11 08:15:23 -06:00
parent 0218f01f12
commit ae3cc327c7
9 changed files with 177 additions and 79 deletions
+1 -1
View File
@@ -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) */
+5 -4
View File
@@ -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.
*
****************************************************************************/