diff options
author | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2008-11-18 17:30:30 +0000 |
---|---|---|
committer | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2008-11-18 17:30:30 +0000 |
commit | a5161eb56fffe5ef8087d00e53ef6c5de4cd7dd6 (patch) | |
tree | 414ecfd618101a507bf1b3c9263cd067b2ad7b9b /nuttx/include/poll.h | |
parent | c23d514aabe0d76722da15bd2c788e14f2f466f6 (diff) |
Implement poll/select for sockets
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@1277 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/include/poll.h')
-rw-r--r-- | nuttx/include/poll.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nuttx/include/poll.h b/nuttx/include/poll.h index e82d48f57c..74acfe2cde 100644 --- a/nuttx/include/poll.h +++ b/nuttx/include/poll.h @@ -108,6 +108,12 @@ struct pollfd sem_t *sem; /* Pointer to semaphore used to post output event */ pollevent_t events; /* The input event flags */ pollevent_t revents; /* The output event flags */ + + /* The socket poll logic needs a place to retain state info */ + +#if CONFIG_NSOCKET_DESCRIPTORS > 0 && defined(CONFIG_NET_TCP) && CONFIG_NET_NTCP_READAHEAD_BUFFERS > 0 + FAR void *private; +#endif }; /**************************************************************************** |