mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
AIO now also supports socket transfers
This commit is contained in:
+1
-1
@@ -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) */
|
||||
|
||||
@@ -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.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user