diff options
author | midipix <writeonce@midipix.org> | 2016-04-01 15:56:13 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-04-01 15:56:13 -0400 |
commit | 072ce8d5ac74c601ecbe600dcd554624199ed04f (patch) | |
tree | ed86c3f54d30f44ecdc9cdb25ce90cd0b7a9f2ac | |
parent | d02e498170e3f1c2d71e21ac8d2ce89a72fcc671 (diff) | |
download | ntapi-072ce8d5ac74c601ecbe600dcd554624199ed04f.tar.bz2 ntapi-072ce8d5ac74c601ecbe600dcd554624199ed04f.tar.xz |
socket interfaces: added afd poll-related definitions.
-rw-r--r-- | include/ntapi/nt_socket.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/include/ntapi/nt_socket.h b/include/ntapi/nt_socket.h index 00ce144..82cae16 100644 --- a/include/ntapi/nt_socket.h +++ b/include/ntapi/nt_socket.h @@ -189,6 +189,16 @@ #define NT_AFD_IOCTL_SET_INFO (0x1203bu) #define NT_AFD_IOCTL_GET_INFO (0x1207bu) +/* afd poll socket info bits */ +#define NT_AFD_POLL_RECEIVE (0x01u) +#define NT_AFD_POLL_RECEIVE_EXPEDITED (0x02u) +#define NT_AFD_POLL_SEND (0x04u) +#define NT_AFD_POLL_DISCONNECT (0x08u) +#define NT_AFD_POLL_ABORT (0x10u) +#define NT_AFD_POLL_LOCAL_CLOSE (0x20u) +#define NT_AFD_POLL_CONNECT (0x40u) +#define NT_AFD_POLL_ACCEPT (0x80u) + /* afd socket shutdown bits */ #define NT_AFD_DISCONNECT_WR (0x01u) #define NT_AFD_DISCONNECT_RD (0x02u) @@ -333,6 +343,21 @@ typedef struct _nt_afd_recv_info { } nt_afd_recv_info; +typedef struct _nt_afd_poll_socket_info { + void * hsocket; + uint32_t events; + int32_t status; +} nt_afd_poll_socket_info; + + +typedef struct _nt_afd_poll_info { + nt_timeout timeout; + uint32_t nfds; + uint32_t options; + nt_afd_poll_socket_info pollfds[]; +} nt_afd_poll_info; + + typedef struct _nt_afd_disconnect_info { uint32_t shutdown_flags; uint32_t unknown[3]; |