Classes | Macros | Typedefs
win.h File Reference
#include <winsock2.h>
#include <mswsock.h>
#include <ws2tcpip.h>
#include <windows.h>
#include <process.h>
#include <signal.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <stdint.h>
#include "uv/tree.h"
#include "uv/threadpool.h"
Include dependency graph for win.h:

Go to the source code of this file.

Classes

struct  _AFD_POLL_HANDLE_INFO
 
struct  _AFD_POLL_INFO
 
struct  uv__dirent_s
 
struct  uv_barrier_t
 
struct  uv_buf_t
 
union  uv_cond_t
 
struct  uv_key_t
 
struct  uv_lib_t
 
struct  uv_once_s
 
union  uv_rwlock_t
 

Macros

#define _SSIZE_T_
 
#define _SSIZE_T_DEFINED
 
#define _WIN32_WINNT   0x0600
 
#define F_OK   0
 
#define HAVE_DIRENT_TYPES
 
#define LOCALE_INVARIANT   0x007f
 
#define MAX_PIPENAME_LEN   256
 
#define NSIG   SIGWINCH + 1
 
#define R_OK   4
 
#define S_IFLNK   0xA000
 
#define SIGABRT_COMPAT   6
 
#define SIGHUP   1
 
#define SIGKILL   9
 
#define SIGWINCH   28
 
#define SSIZE_MAX   INTPTR_MAX
 
#define UV__DT_BLOCK   UV_DIRENT_BLOCK
 
#define UV__DT_CHAR   UV_DIRENT_CHAR
 
#define UV__DT_DIR   UV_DIRENT_DIR
 
#define UV__DT_FIFO   UV_DIRENT_FIFO
 
#define UV__DT_FILE   UV_DIRENT_FILE
 
#define UV__DT_LINK   UV_DIRENT_LINK
 
#define UV__DT_SOCKET   UV_DIRENT_SOCKET
 
#define UV_ASYNC_PRIVATE_FIELDS
 
#define UV_CHECK_PRIVATE_FIELDS
 
#define UV_CONNECT_PRIVATE_FIELDS   /* empty */
 
#define UV_DIR_PRIVATE_FIELDS
 
#define UV_DYNAMIC   FAR WINAPI
 
#define UV_FS_EVENT_PRIVATE_FIELDS
 
#define UV_FS_O_APPEND   _O_APPEND
 
#define UV_FS_O_CREAT   _O_CREAT
 
#define UV_FS_O_DIRECT   0x02000000 /* FILE_FLAG_NO_BUFFERING */
 
#define UV_FS_O_DIRECTORY   0
 
#define UV_FS_O_DSYNC   0x04000000 /* FILE_FLAG_WRITE_THROUGH */
 
#define UV_FS_O_EXCL   _O_EXCL
 
#define UV_FS_O_EXLOCK   0x10000000 /* EXCLUSIVE SHARING MODE */
 
#define UV_FS_O_FILEMAP   0x20000000
 
#define UV_FS_O_NOATIME   0
 
#define UV_FS_O_NOCTTY   0
 
#define UV_FS_O_NOFOLLOW   0
 
#define UV_FS_O_NONBLOCK   0
 
#define UV_FS_O_RANDOM   _O_RANDOM
 
#define UV_FS_O_RDONLY   _O_RDONLY
 
#define UV_FS_O_RDWR   _O_RDWR
 
#define UV_FS_O_SEQUENTIAL   _O_SEQUENTIAL
 
#define UV_FS_O_SHORT_LIVED   _O_SHORT_LIVED
 
#define UV_FS_O_SYMLINK   0
 
#define UV_FS_O_SYNC   0x08000000 /* FILE_FLAG_WRITE_THROUGH */
 
#define UV_FS_O_TEMPORARY   _O_TEMPORARY
 
#define UV_FS_O_TRUNC   _O_TRUNC
 
#define UV_FS_O_WRONLY   _O_WRONLY
 
#define UV_FS_PRIVATE_FIELDS
 
#define UV_GETADDRINFO_PRIVATE_FIELDS
 
#define UV_GETNAMEINFO_PRIVATE_FIELDS
 
#define UV_HANDLE_PRIVATE_FIELDS
 
#define UV_IDLE_PRIVATE_FIELDS
 
#define UV_LOOP_PRIVATE_FIELDS
 
#define UV_MSAFD_PROVIDER_COUNT   3
 
#define UV_ONCE_INIT   { 0, NULL }
 
#define uv_pipe_connection_fields
 
#define UV_PIPE_PRIVATE_FIELDS
 
#define uv_pipe_server_fields
 
#define UV_POLL_PRIVATE_FIELDS
 
#define UV_PREPARE_PRIVATE_FIELDS
 
#define UV_PRIVATE_REQ_TYPES
 
#define UV_PROCESS_PRIVATE_FIELDS
 
#define UV_REQ_PRIVATE_FIELDS
 
#define UV_REQ_TYPE_PRIVATE
 
#define UV_SHUTDOWN_PRIVATE_FIELDS   /* empty */
 
#define UV_SIGNAL_PRIVATE_FIELDS
 
#define uv_stream_connection_fields
 
#define UV_STREAM_PRIVATE_FIELDS
 
#define uv_stream_server_fields   uv_connection_cb connection_cb;
 
#define uv_tcp_connection_fields
 
#define UV_TCP_PRIVATE_FIELDS
 
#define uv_tcp_server_fields
 
#define UV_TIMER_PRIVATE_FIELDS
 
#define UV_TTY_PRIVATE_FIELDS
 
#define UV_UDP_PRIVATE_FIELDS
 
#define UV_UDP_SEND_PRIVATE_FIELDS   /* empty */
 
#define UV_WORK_PRIVATE_FIELDS   struct uv__work work_req;
 
#define UV_WRITE_PRIVATE_FIELDS
 
#define W_OK   2
 
#define WSAID_ACCEPTEX
 
#define WSAID_CONNECTEX
 
#define WSAID_DISCONNECTEX
 
#define WSAID_GETACCEPTEXSOCKADDRS
 
#define WSAID_TRANSMITFILE
 
#define X_OK   1
 

Typedefs

typedef struct _AFD_POLL_HANDLE_INFO AFD_POLL_HANDLE_INFO
 
typedef struct _AFD_POLL_INFO AFD_POLL_INFO
 
typedef PVOID CONDITION_VARIABLE
 
typedef BOOL(PASCAL * LPFN_ACCEPTEX) (SOCKET sListenSocket, SOCKET sAcceptSocket, PVOID lpOutputBuffer, DWORD dwReceiveDataLength, DWORD dwLocalAddressLength, DWORD dwRemoteAddressLength, LPDWORD lpdwBytesReceived, LPOVERLAPPED lpOverlapped)
 
typedef BOOL(PASCAL * LPFN_CONNECTEX) (SOCKET s, const struct sockaddr *name, int namelen, PVOID lpSendBuffer, DWORD dwSendDataLength, LPDWORD lpdwBytesSent, LPOVERLAPPED lpOverlapped)
 
typedef BOOL(PASCAL * LPFN_DISCONNECTEX) (SOCKET hSocket, LPOVERLAPPED lpOverlapped, DWORD dwFlags, DWORD reserved)
 
typedef void(PASCAL * LPFN_GETACCEPTEXSOCKADDRS) (PVOID lpOutputBuffer, DWORD dwReceiveDataLength, DWORD dwLocalAddressLength, DWORD dwRemoteAddressLength, LPSOCKADDR *LocalSockaddr, LPINT LocalSockaddrLength, LPSOCKADDR *RemoteSockaddr, LPINT RemoteSockaddrLength)
 
typedef BOOL(PASCAL * LPFN_TRANSMITFILE) (SOCKET hSocket, HANDLE hFile, DWORD nNumberOfBytesToWrite, DWORD nNumberOfBytesPerSend, LPOVERLAPPED lpOverlapped, LPTRANSMIT_FILE_BUFFERS lpTransmitBuffers, DWORD dwFlags)
 
typedef int(WSAAPI * LPFN_WSARECV) (SOCKET socket, LPWSABUF buffers, DWORD buffer_count, LPDWORD bytes, LPDWORD flags, LPWSAOVERLAPPED overlapped, LPWSAOVERLAPPED_COMPLETION_ROUTINE completion_routine)
 
typedef int(WSAAPI * LPFN_WSARECVFROM) (SOCKET socket, LPWSABUF buffers, DWORD buffer_count, LPDWORD bytes, LPDWORD flags, struct sockaddr *addr, LPINT addr_len, LPWSAOVERLAPPED overlapped, LPWSAOVERLAPPED_COMPLETION_ROUTINE completion_routine)
 
typedef LONG NTSTATUS
 
typedef struct _AFD_POLL_HANDLE_INFOPAFD_POLL_HANDLE_INFO
 
typedef struct _AFD_POLL_INFOPAFD_POLL_INFO
 
typedef PVOID * PCONDITION_VARIABLE
 
typedef NTSTATUSPNTSTATUS
 
typedef RTL_SRWLOCKPSRWLOCK
 
typedef PVOID RTL_SRWLOCK
 
typedef RTL_SRWLOCK SRWLOCK
 
typedef intptr_t ssize_t
 
typedef struct uv__dirent_s uv__dirent_t
 
typedef struct uv_buf_t uv_buf_t
 
typedef int uv_file
 
typedef unsigned char uv_gid_t
 
typedef CRITICAL_SECTION uv_mutex_t
 
typedef struct uv_once_s uv_once_t
 
typedef HANDLE uv_os_fd_t
 
typedef SOCKET uv_os_sock_t
 
typedef int uv_pid_t
 
typedef HANDLE uv_sem_t
 
typedef HANDLE uv_thread_t
 
typedef unsigned char uv_uid_t
 

Macro Definition Documentation

◆ _SSIZE_T_

#define _SSIZE_T_

Definition at line 29 of file win.h.

◆ _SSIZE_T_DEFINED

#define _SSIZE_T_DEFINED

Definition at line 30 of file win.h.

◆ _WIN32_WINNT

#define _WIN32_WINNT   0x0600

Definition at line 23 of file win.h.

◆ F_OK

#define F_OK   0

Definition at line 655 of file win.h.

◆ HAVE_DIRENT_TYPES

#define HAVE_DIRENT_TYPES

Definition at line 309 of file win.h.

◆ LOCALE_INVARIANT

#define LOCALE_INVARIANT   0x007f

Definition at line 44 of file win.h.

◆ MAX_PIPENAME_LEN

#define MAX_PIPENAME_LEN   256

Definition at line 65 of file win.h.

◆ NSIG

#define NSIG   SIGWINCH + 1

Definition at line 95 of file win.h.

◆ R_OK

#define R_OK   4

Definition at line 658 of file win.h.

◆ S_IFLNK

#define S_IFLNK   0xA000

Definition at line 68 of file win.h.

◆ SIGABRT_COMPAT

#define SIGABRT_COMPAT   6

Definition at line 101 of file win.h.

◆ SIGHUP

#define SIGHUP   1

Definition at line 86 of file win.h.

◆ SIGKILL

#define SIGKILL   9

Definition at line 87 of file win.h.

◆ SIGWINCH

#define SIGWINCH   28

Definition at line 88 of file win.h.

◆ SSIZE_MAX

#define SSIZE_MAX   INTPTR_MAX

Definition at line 28 of file win.h.

◆ UV__DT_BLOCK

#define UV__DT_BLOCK   UV_DIRENT_BLOCK

Definition at line 316 of file win.h.

◆ UV__DT_CHAR

#define UV__DT_CHAR   UV_DIRENT_CHAR

Definition at line 315 of file win.h.

◆ UV__DT_DIR

#define UV__DT_DIR   UV_DIRENT_DIR

Definition at line 310 of file win.h.

◆ UV__DT_FIFO

#define UV__DT_FIFO   UV_DIRENT_FIFO

Definition at line 313 of file win.h.

◆ UV__DT_FILE

#define UV__DT_FILE   UV_DIRENT_FILE

Definition at line 311 of file win.h.

◆ UV__DT_LINK

#define UV__DT_LINK   UV_DIRENT_LINK

Definition at line 312 of file win.h.

◆ UV__DT_SOCKET

#define UV__DT_SOCKET   UV_DIRENT_SOCKET

Definition at line 314 of file win.h.

◆ UV_ASYNC_PRIVATE_FIELDS

#define UV_ASYNC_PRIVATE_FIELDS
Value:
struct uv_req_s async_req; \
uv_async_cb async_cb; \
/* char to avoid alignment issues */ \
char volatile async_sent;

Definition at line 551 of file win.h.

◆ UV_CHECK_PRIVATE_FIELDS

#define UV_CHECK_PRIVATE_FIELDS
Value:
uv_check_t* check_prev; \
uv_check_t* check_next; \
uv_check_cb check_cb;

Definition at line 562 of file win.h.

◆ UV_CONNECT_PRIVATE_FIELDS

#define UV_CONNECT_PRIVATE_FIELDS   /* empty */

Definition at line 389 of file win.h.

◆ UV_DIR_PRIVATE_FIELDS

#define UV_DIR_PRIVATE_FIELDS
Value:
HANDLE dir_handle; \
WIN32_FIND_DATAW find_data; \
BOOL need_find_call;

Definition at line 304 of file win.h.

◆ UV_DYNAMIC

#define UV_DYNAMIC   FAR WINAPI

Definition at line 319 of file win.h.

◆ UV_FS_EVENT_PRIVATE_FIELDS

#define UV_FS_EVENT_PRIVATE_FIELDS
Value:
struct uv_fs_event_req_s { \
UV_REQ_FIELDS \
} req; \
HANDLE dir_handle; \
int req_pending; \
uv_fs_event_cb cb; \
WCHAR* filew; \
WCHAR* short_filew; \
WCHAR* dirw; \
char* buffer;

Definition at line 637 of file win.h.

◆ UV_FS_O_APPEND

#define UV_FS_O_APPEND   _O_APPEND

Definition at line 668 of file win.h.

◆ UV_FS_O_CREAT

#define UV_FS_O_CREAT   _O_CREAT

Definition at line 669 of file win.h.

◆ UV_FS_O_DIRECT

#define UV_FS_O_DIRECT   0x02000000 /* FILE_FLAG_NO_BUFFERING */

Definition at line 682 of file win.h.

◆ UV_FS_O_DIRECTORY

#define UV_FS_O_DIRECTORY   0

Definition at line 683 of file win.h.

◆ UV_FS_O_DSYNC

#define UV_FS_O_DSYNC   0x04000000 /* FILE_FLAG_WRITE_THROUGH */

Definition at line 684 of file win.h.

◆ UV_FS_O_EXCL

#define UV_FS_O_EXCL   _O_EXCL

Definition at line 670 of file win.h.

◆ UV_FS_O_EXLOCK

#define UV_FS_O_EXLOCK   0x10000000 /* EXCLUSIVE SHARING MODE */

Definition at line 685 of file win.h.

◆ UV_FS_O_FILEMAP

#define UV_FS_O_FILEMAP   0x20000000

Definition at line 671 of file win.h.

◆ UV_FS_O_NOATIME

#define UV_FS_O_NOATIME   0

Definition at line 686 of file win.h.

◆ UV_FS_O_NOCTTY

#define UV_FS_O_NOCTTY   0

Definition at line 687 of file win.h.

◆ UV_FS_O_NOFOLLOW

#define UV_FS_O_NOFOLLOW   0

Definition at line 688 of file win.h.

◆ UV_FS_O_NONBLOCK

#define UV_FS_O_NONBLOCK   0

Definition at line 689 of file win.h.

◆ UV_FS_O_RANDOM

#define UV_FS_O_RANDOM   _O_RANDOM

Definition at line 672 of file win.h.

◆ UV_FS_O_RDONLY

#define UV_FS_O_RDONLY   _O_RDONLY

Definition at line 673 of file win.h.

◆ UV_FS_O_RDWR

#define UV_FS_O_RDWR   _O_RDWR

Definition at line 674 of file win.h.

◆ UV_FS_O_SEQUENTIAL

#define UV_FS_O_SEQUENTIAL   _O_SEQUENTIAL

Definition at line 675 of file win.h.

◆ UV_FS_O_SHORT_LIVED

#define UV_FS_O_SHORT_LIVED   _O_SHORT_LIVED

Definition at line 676 of file win.h.

◆ UV_FS_O_SYMLINK

#define UV_FS_O_SYMLINK   0

Definition at line 690 of file win.h.

◆ UV_FS_O_SYNC

#define UV_FS_O_SYNC   0x08000000 /* FILE_FLAG_WRITE_THROUGH */

Definition at line 691 of file win.h.

◆ UV_FS_O_TEMPORARY

#define UV_FS_O_TEMPORARY   _O_TEMPORARY

Definition at line 677 of file win.h.

◆ UV_FS_O_TRUNC

#define UV_FS_O_TRUNC   _O_TRUNC

Definition at line 678 of file win.h.

◆ UV_FS_O_WRONLY

#define UV_FS_O_WRONLY   _O_WRONLY

Definition at line 679 of file win.h.

◆ UV_FS_PRIVATE_FIELDS

#define UV_FS_PRIVATE_FIELDS
Value:
struct uv__work work_req; \
int flags; \
DWORD sys_errno_; \
union { \
/* TODO: remove me in 0.9. */ \
WCHAR* pathw; \
int fd; \
} file; \
union { \
struct { \
int mode; \
WCHAR* new_pathw; \
int file_flags; \
int fd_out; \
unsigned int nbufs; \
uv_buf_t* bufs; \
int64_t offset; \
uv_buf_t bufsml[4]; \
} info; \
struct { \
double atime; \
double mtime; \
} time; \
} fs;

Definition at line 608 of file win.h.

◆ UV_GETADDRINFO_PRIVATE_FIELDS

#define UV_GETADDRINFO_PRIVATE_FIELDS
Value:
struct uv__work work_req; \
uv_getaddrinfo_cb getaddrinfo_cb; \
void* alloc; \
WCHAR* node; \
WCHAR* service; \
/* The addrinfoW field is used to store a pointer to the hints, and */ \
/* later on to store the result of GetAddrInfoW. The final result will */ \
/* be converted to struct addrinfo* and stored in the addrinfo field. */ \
struct addrinfoW* addrinfow; \
struct addrinfo* addrinfo; \
int retcode;

Definition at line 576 of file win.h.

◆ UV_GETNAMEINFO_PRIVATE_FIELDS

#define UV_GETNAMEINFO_PRIVATE_FIELDS
Value:
struct uv__work work_req; \
uv_getnameinfo_cb getnameinfo_cb; \
struct sockaddr_storage storage; \
int flags; \
char host[NI_MAXHOST]; \
int retcode;

Definition at line 589 of file win.h.

◆ UV_HANDLE_PRIVATE_FIELDS

#define UV_HANDLE_PRIVATE_FIELDS
Value:
uv_handle_t* endgame_next; \
unsigned int flags;

Definition at line 572 of file win.h.

◆ UV_IDLE_PRIVATE_FIELDS

#define UV_IDLE_PRIVATE_FIELDS
Value:
uv_idle_t* idle_prev; \
uv_idle_t* idle_next; \
uv_idle_cb idle_cb;

Definition at line 567 of file win.h.

◆ UV_LOOP_PRIVATE_FIELDS

#define UV_LOOP_PRIVATE_FIELDS

Definition at line 325 of file win.h.

◆ UV_MSAFD_PROVIDER_COUNT

#define UV_MSAFD_PROVIDER_COUNT   3

Definition at line 219 of file win.h.

◆ UV_ONCE_INIT

#define UV_ONCE_INIT   { 0, NULL }

Definition at line 288 of file win.h.

◆ uv_pipe_connection_fields

#define uv_pipe_connection_fields
Value:
uv_timer_t* eof_timer; \
uv_write_t dummy; /* TODO: retained for ABI compat; remove this in v2.x. */ \
DWORD ipc_remote_pid; \
union { \
uint32_t payload_remaining; \
uint64_t dummy; /* TODO: retained for ABI compat; remove this in v2.x. */ \
} ipc_data_frame; \
void* ipc_xfer_queue[2]; \
int ipc_xfer_queue_length; \
uv_write_t* non_overlapped_writes_tail; \
CRITICAL_SECTION readfile_thread_lock; \
volatile HANDLE readfile_thread_handle;

Definition at line 472 of file win.h.

◆ UV_PIPE_PRIVATE_FIELDS

#define UV_PIPE_PRIVATE_FIELDS
Value:
HANDLE handle; \
WCHAR* name; \
union { \
struct { uv_pipe_server_fields } serv; \
} pipe;

Definition at line 486 of file win.h.

◆ uv_pipe_server_fields

#define uv_pipe_server_fields
Value:
int pending_instances; \
uv_pipe_accept_t* accept_reqs; \
uv_pipe_accept_t* pending_accepts;

Definition at line 467 of file win.h.

◆ UV_POLL_PRIVATE_FIELDS

#define UV_POLL_PRIVATE_FIELDS
Value:
SOCKET socket; \
/* Used in fast mode */ \
SOCKET peer_socket; \
AFD_POLL_INFO afd_poll_info_1; \
AFD_POLL_INFO afd_poll_info_2; \
/* Used in fast and slow mode. */ \
uv_req_t poll_req_1; \
uv_req_t poll_req_2; \
unsigned char submitted_events_1; \
unsigned char submitted_events_2; \
unsigned char mask_events_1; \
unsigned char mask_events_2; \
unsigned char events;

Definition at line 528 of file win.h.

◆ UV_PREPARE_PRIVATE_FIELDS

#define UV_PREPARE_PRIVATE_FIELDS
Value:
uv_prepare_t* prepare_prev; \
uv_prepare_t* prepare_next; \
uv_prepare_cb prepare_cb;

Definition at line 557 of file win.h.

◆ UV_PRIVATE_REQ_TYPES

#define UV_PRIVATE_REQ_TYPES
Value:
typedef struct uv_pipe_accept_s { \
UV_REQ_FIELDS \
HANDLE pipeHandle; \
struct uv_pipe_accept_s* next_pending; \
} uv_pipe_accept_t; \
\
typedef struct uv_tcp_accept_s { \
UV_REQ_FIELDS \
SOCKET accept_socket; \
char accept_buffer[sizeof(struct sockaddr_storage) * 2 + 32]; \
HANDLE event_handle; \
HANDLE wait_handle; \
struct uv_tcp_accept_s* next_pending; \
} uv_tcp_accept_t; \
\
typedef struct uv_read_s { \
UV_REQ_FIELDS \
HANDLE event_handle; \
HANDLE wait_handle; \
} uv_read_t;

Definition at line 398 of file win.h.

◆ UV_PROCESS_PRIVATE_FIELDS

#define UV_PROCESS_PRIVATE_FIELDS
Value:
struct uv_process_exit_s { \
UV_REQ_FIELDS \
} exit_req; \
BYTE* child_stdio_buffer; \
int exit_signal; \
HANDLE wait_handle; \
HANDLE process_handle; \
volatile char exit_cb_pending;

Definition at line 598 of file win.h.

◆ UV_REQ_PRIVATE_FIELDS

#define UV_REQ_PRIVATE_FIELDS
Value:
union { \
/* Used by I/O operations */ \
struct { \
OVERLAPPED overlapped; \
size_t queued_bytes; \
} io; \
} u; \
struct uv_req_s* next_req;

Definition at line 373 of file win.h.

◆ UV_REQ_TYPE_PRIVATE

#define UV_REQ_TYPE_PRIVATE
Value:
/* TODO: remove the req suffix */ \
UV_ACCEPT, \
UV_FS_EVENT_REQ, \
UV_POLL_REQ, \
UV_PROCESS_EXIT, \
UV_READ, \
UV_UDP_RECV, \
UV_WAKEUP, \
UV_SIGNAL_REQ,

Definition at line 362 of file win.h.

◆ UV_SHUTDOWN_PRIVATE_FIELDS

#define UV_SHUTDOWN_PRIVATE_FIELDS   /* empty */

Definition at line 392 of file win.h.

◆ UV_SIGNAL_PRIVATE_FIELDS

#define UV_SIGNAL_PRIVATE_FIELDS
Value:
RB_ENTRY(uv_signal_s) tree_entry; \
struct uv_req_s signal_req; \
unsigned long pending_signum;

Definition at line 649 of file win.h.

◆ uv_stream_connection_fields

#define uv_stream_connection_fields
Value:
unsigned int write_reqs_pending; \
uv_shutdown_t* shutdown_req;

Definition at line 420 of file win.h.

◆ UV_STREAM_PRIVATE_FIELDS

#define UV_STREAM_PRIVATE_FIELDS
Value:
unsigned int reqs_pending; \
int activecnt; \
uv_read_t read_req; \
union { \
struct { uv_stream_server_fields } serv; \
} stream;

Definition at line 427 of file win.h.

◆ uv_stream_server_fields

#define uv_stream_server_fields   uv_connection_cb connection_cb;

Definition at line 424 of file win.h.

◆ uv_tcp_connection_fields

#define uv_tcp_connection_fields
Value:
uv_buf_t read_buffer; \
LPFN_CONNECTEX func_connectex;

Definition at line 442 of file win.h.

◆ UV_TCP_PRIVATE_FIELDS

#define UV_TCP_PRIVATE_FIELDS
Value:
SOCKET socket; \
int delayed_error; \
union { \
struct { uv_tcp_server_fields } serv; \
} tcp;

Definition at line 446 of file win.h.

◆ uv_tcp_server_fields

#define uv_tcp_server_fields
Value:
uv_tcp_accept_t* accept_reqs; \
unsigned int processed_accepts; \
uv_tcp_accept_t* pending_accepts; \
LPFN_ACCEPTEX func_acceptex;

Definition at line 436 of file win.h.

◆ UV_TIMER_PRIVATE_FIELDS

#define UV_TIMER_PRIVATE_FIELDS
Value:
void* heap_node[3]; \
int unused; \
uint64_t timeout; \
uint64_t repeat; \
uint64_t start_id; \
uv_timer_cb timer_cb;

Definition at line 543 of file win.h.

◆ UV_TTY_PRIVATE_FIELDS

#define UV_TTY_PRIVATE_FIELDS
Value:
HANDLE handle; \
union { \
struct { \
/* Used for readable TTY handles */ \
/* TODO: remove me in v2.x. */ \
HANDLE unused_; \
uv_buf_t read_line_buffer; \
HANDLE read_raw_wait; \
/* Fields used for translating win keystrokes into vt100 characters */ \
char last_key[8]; \
unsigned char last_key_offset; \
unsigned char last_key_len; \
WCHAR last_utf16_high_surrogate; \
INPUT_RECORD last_input_record; \
} rd; \
struct { \
/* Used for writable TTY handles */ \
/* utf8-to-utf16 conversion state */ \
unsigned int utf8_codepoint; \
unsigned char utf8_bytes_left; \
/* eol conversion state */ \
unsigned char previous_eol; \
/* ansi parser state */ \
unsigned short ansi_parser_state; \
unsigned char ansi_csi_argc; \
unsigned short ansi_csi_argv[4]; \
COORD saved_position; \
WORD saved_attributes; \
} wr; \
} tty;

Definition at line 496 of file win.h.

◆ UV_UDP_PRIVATE_FIELDS

#define UV_UDP_PRIVATE_FIELDS
Value:
SOCKET socket; \
unsigned int reqs_pending; \
int activecnt; \
uv_req_t recv_req; \
uv_buf_t recv_buffer; \
struct sockaddr_storage recv_from; \
int recv_from_len; \
uv_udp_recv_cb recv_cb; \
uv_alloc_cb alloc_cb; \
LPFN_WSARECV func_wsarecv; \
LPFN_WSARECVFROM func_wsarecvfrom;

Definition at line 454 of file win.h.

◆ UV_UDP_SEND_PRIVATE_FIELDS

#define UV_UDP_SEND_PRIVATE_FIELDS   /* empty */

Definition at line 395 of file win.h.

◆ UV_WORK_PRIVATE_FIELDS

#define UV_WORK_PRIVATE_FIELDS   struct uv__work work_req;

Definition at line 634 of file win.h.

◆ UV_WRITE_PRIVATE_FIELDS

#define UV_WRITE_PRIVATE_FIELDS
Value:
int coalesced; \
uv_buf_t write_buffer; \
HANDLE event_handle; \
HANDLE wait_handle;

Definition at line 383 of file win.h.

◆ W_OK

#define W_OK   2

Definition at line 661 of file win.h.

◆ WSAID_ACCEPTEX

#define WSAID_ACCEPTEX
Value:
{0xb5367df1, 0xcbac, 0x11cf, \
{0x95, 0xca, 0x00, 0x80, 0x5f, 0x48, 0xa1, 0x92}}

Definition at line 109 of file win.h.

◆ WSAID_CONNECTEX

#define WSAID_CONNECTEX
Value:
{0x25a207b9, 0xddf3, 0x4660, \
{0x8e, 0xe9, 0x76, 0xe5, 0x8c, 0x74, 0x06, 0x3e}}

Definition at line 113 of file win.h.

◆ WSAID_DISCONNECTEX

#define WSAID_DISCONNECTEX
Value:
{0x7fda2e11, 0x8630, 0x436f, \
{0xa0, 0x31, 0xf5, 0x36, 0xa6, 0xee, 0xc1, 0x57}}

Definition at line 121 of file win.h.

◆ WSAID_GETACCEPTEXSOCKADDRS

#define WSAID_GETACCEPTEXSOCKADDRS
Value:
{0xb5367df2, 0xcbac, 0x11cf, \
{0x95, 0xca, 0x00, 0x80, 0x5f, 0x48, 0xa1, 0x92}}

Definition at line 117 of file win.h.

◆ WSAID_TRANSMITFILE

#define WSAID_TRANSMITFILE
Value:
{0xb5367df0, 0xcbac, 0x11cf, \
{0x95, 0xca, 0x00, 0x80, 0x5f, 0x48, 0xa1, 0x92}}

Definition at line 125 of file win.h.

◆ X_OK

#define X_OK   1

Definition at line 664 of file win.h.

Typedef Documentation

◆ AFD_POLL_HANDLE_INFO

◆ AFD_POLL_INFO

typedef struct _AFD_POLL_INFO AFD_POLL_INFO

◆ CONDITION_VARIABLE

typedef PVOID CONDITION_VARIABLE

Definition at line 203 of file win.h.

◆ LPFN_ACCEPTEX

typedef BOOL(PASCAL * LPFN_ACCEPTEX) (SOCKET sListenSocket, SOCKET sAcceptSocket, PVOID lpOutputBuffer, DWORD dwReceiveDataLength, DWORD dwLocalAddressLength, DWORD dwRemoteAddressLength, LPDWORD lpdwBytesReceived, LPOVERLAPPED lpOverlapped)

Definition at line 130 of file win.h.

◆ LPFN_CONNECTEX

typedef BOOL(PASCAL * LPFN_CONNECTEX) (SOCKET s, const struct sockaddr *name, int namelen, PVOID lpSendBuffer, DWORD dwSendDataLength, LPDWORD lpdwBytesSent, LPOVERLAPPED lpOverlapped)

Definition at line 140 of file win.h.

◆ LPFN_DISCONNECTEX

typedef BOOL(PASCAL * LPFN_DISCONNECTEX) (SOCKET hSocket, LPOVERLAPPED lpOverlapped, DWORD dwFlags, DWORD reserved)

Definition at line 159 of file win.h.

◆ LPFN_GETACCEPTEXSOCKADDRS

typedef void(PASCAL * LPFN_GETACCEPTEXSOCKADDRS) (PVOID lpOutputBuffer, DWORD dwReceiveDataLength, DWORD dwLocalAddressLength, DWORD dwRemoteAddressLength, LPSOCKADDR *LocalSockaddr, LPINT LocalSockaddrLength, LPSOCKADDR *RemoteSockaddr, LPINT RemoteSockaddrLength)

Definition at line 149 of file win.h.

◆ LPFN_TRANSMITFILE

typedef BOOL(PASCAL * LPFN_TRANSMITFILE) (SOCKET hSocket, HANDLE hFile, DWORD nNumberOfBytesToWrite, DWORD nNumberOfBytesPerSend, LPOVERLAPPED lpOverlapped, LPTRANSMIT_FILE_BUFFERS lpTransmitBuffers, DWORD dwFlags)

Definition at line 165 of file win.h.

◆ LPFN_WSARECV

typedef int(WSAAPI* LPFN_WSARECV) (SOCKET socket, LPWSABUF buffers, DWORD buffer_count, LPDWORD bytes, LPDWORD flags, LPWSAOVERLAPPED overlapped, LPWSAOVERLAPPED_COMPLETION_ROUTINE completion_routine)

Definition at line 178 of file win.h.

◆ LPFN_WSARECVFROM

typedef int(WSAAPI* LPFN_WSARECVFROM) (SOCKET socket, LPWSABUF buffers, DWORD buffer_count, LPDWORD bytes, LPDWORD flags, struct sockaddr *addr, LPINT addr_len, LPWSAOVERLAPPED overlapped, LPWSAOVERLAPPED_COMPLETION_ROUTINE completion_routine)

Definition at line 187 of file win.h.

◆ NTSTATUS

typedef LONG NTSTATUS

Definition at line 198 of file win.h.

◆ PAFD_POLL_HANDLE_INFO

◆ PAFD_POLL_INFO

typedef struct _AFD_POLL_INFO * PAFD_POLL_INFO

◆ PCONDITION_VARIABLE

typedef PVOID * PCONDITION_VARIABLE

Definition at line 203 of file win.h.

◆ PNTSTATUS

typedef NTSTATUS* PNTSTATUS

Definition at line 199 of file win.h.

◆ PSRWLOCK

typedef RTL_SRWLOCK * PSRWLOCK

Definition at line 174 of file win.h.

◆ RTL_SRWLOCK

typedef PVOID RTL_SRWLOCK

Definition at line 173 of file win.h.

◆ SRWLOCK

Definition at line 174 of file win.h.

◆ ssize_t

typedef intptr_t ssize_t

Definition at line 27 of file win.h.

◆ uv__dirent_t

typedef struct uv__dirent_s uv__dirent_t

◆ uv_buf_t

typedef struct uv_buf_t uv_buf_t

It should be possible to cast uv_buf_t[] to WSABUF[] see http://msdn.microsoft.com/en-us/library/ms741542(v=vs.85).aspx

◆ uv_file

typedef int uv_file

Definition at line 231 of file win.h.

◆ uv_gid_t

typedef unsigned char uv_gid_t

Definition at line 297 of file win.h.

◆ uv_mutex_t

typedef CRITICAL_SECTION uv_mutex_t

Definition at line 240 of file win.h.

◆ uv_once_t

typedef struct uv_once_s uv_once_t

◆ uv_os_fd_t

typedef HANDLE uv_os_fd_t

Definition at line 233 of file win.h.

◆ uv_os_sock_t

typedef SOCKET uv_os_sock_t

Definition at line 232 of file win.h.

◆ uv_pid_t

typedef int uv_pid_t

Definition at line 234 of file win.h.

◆ uv_sem_t

typedef HANDLE uv_sem_t

Definition at line 238 of file win.h.

◆ uv_thread_t

typedef HANDLE uv_thread_t

Definition at line 236 of file win.h.

◆ uv_uid_t

typedef unsigned char uv_uid_t

Definition at line 296 of file win.h.

uv__work
Definition: third_party/libuv/include/uv/threadpool.h:30
uv_tcp_connection_fields
#define uv_tcp_connection_fields
Definition: win.h:442
timer_cb
static void timer_cb(uv_timer_t *timer)
Definition: fs-poll.c:172
file
const grpc_generator::File * file
Definition: python_private_generator.h:38
uv_prepare_s
Definition: uv.h:804
read_req
uv_fs_t read_req
Definition: libuv/docs/code/uvcat/main.c:10
alloc_cb
static void alloc_cb(uv_handle_t *handle, size_t suggested_size, uv_buf_t *buf)
Definition: benchmark-pound.c:84
tcp
static uv_tcp_t tcp
Definition: test-connection-fail.c:29
u
OPENSSL_EXPORT pem_password_cb void * u
Definition: pem.h:351
mode
const char int mode
Definition: bloaty/third_party/zlib/contrib/minizip/ioapi.h:135
setup.name
name
Definition: setup.py:542
uv_stream_server_fields
#define uv_stream_server_fields
Definition: win.h:424
NI_MAXHOST
#define NI_MAXHOST
Definition: unix.h:75
write_buffer
static char write_buffer[WRITE_BUFFER_SIZE]
Definition: benchmark-pump.c:69
shutdown_req
static uv_shutdown_t shutdown_req
Definition: benchmark-tcp-write-batch.c:40
uv_check_s
Definition: uv.h:814
tty
uv_tty_t tty
Definition: libuv/docs/code/tty/main.c:7
req
static uv_connect_t req
Definition: test-connection-fail.c:30
uv_pipe_connection_fields
#define uv_pipe_connection_fields
Definition: win.h:472
getnameinfo_cb
static void getnameinfo_cb(uv_getnameinfo_t *handle, int status, const char *hostname, const char *service)
Definition: test-threadpool-cancel.c:106
check_cb
static void check_cb(uv_check_t *handle)
Definition: test-async-null-cb.c:38
heap_node
Definition: heap-inl.h:27
io
uv_tcp_server_fields
#define uv_tcp_server_fields
Definition: win.h:436
buffer
char buffer[1024]
Definition: libuv/docs/code/idle-compute/main.c:8
async_req
Definition: benchmark-fs-stat.c:39
recv_cb
static void recv_cb(uv_udp_t *handle, ssize_t nread, const uv_buf_t *buf, const struct sockaddr *addr, unsigned flags)
Definition: benchmark-udp-pummel.c:109
uv_timer_s
Definition: uv.h:850
http2_server_health_check.conn
conn
Definition: http2_server_health_check.py:29
bufs
static uv_buf_t bufs[5]
Definition: benchmark-udp-pummel.c:51
addrinfoW
Definition: win/getaddrinfo.c:55
async_cb
static void async_cb(uv_async_t *handle)
Definition: benchmark-async-pummel.c:39
uv_signal_s
Definition: uv.h:1561
uv_buf_t
Definition: unix.h:121
NI_MAXSERV
#define NI_MAXSERV
Definition: unix.h:79
uv_pipe_server_fields
#define uv_pipe_server_fields
Definition: win.h:467
uv_idle_s
Definition: uv.h:824
getaddrinfo_cb
static void getaddrinfo_cb(uv_getaddrinfo_t *handle, int status, struct addrinfo *res)
Definition: benchmark-getaddrinfo.c:44
absl::ABSL_NAMESPACE_BEGIN::dummy
int dummy
Definition: function_type_benchmark.cc:28
handle
static csh handle
Definition: test_arm_regression.c:16
RB_ENTRY
#define RB_ENTRY(type)
Definition: tree.h:310
run_tests.retcode
retcode
Definition: run_tests.py:1646
uv_handle_s
Definition: uv.h:441
test_server.socket
socket
Definition: test_server.py:65
flags
uint32_t flags
Definition: retry_filter.cc:632
idle_cb
void idle_cb(uv_idle_t *handle)
Definition: libuv/docs/code/uvstop/main.c:6
service
__attribute__((deprecated("Please use GRPCProtoMethod."))) @interface ProtoMethod NSString * service
Definition: ProtoMethod.h:25
work_req
static uv_work_t work_req
Definition: test-loop-alive.c:32
prepare_cb
static void prepare_cb(uv_prepare_t *handle)
Definition: test-async.c:94
absl::status_internal::storage
static ABSL_INTERNAL_ATOMIC_HOOK_ATTRIBUTES absl::base_internal::AtomicHook< StatusPayloadPrinter > storage
Definition: abseil-cpp/absl/status/status_payload_printer.cc:26
addrinfo
Definition: ares_ipv6.h:43
uv_req_s
Definition: uv.h:404
alloc
std::allocator< int > alloc
Definition: abseil-cpp/absl/container/internal/hash_policy_traits_test.cc:87
timeout
uv_timer_t timeout
Definition: libuv/docs/code/uvwget/main.c:9
cb
OPENSSL_EXPORT pem_password_cb * cb
Definition: pem.h:351
offset
voidpf uLong offset
Definition: bloaty/third_party/zlib/contrib/minizip/ioapi.h:142
uv_stream_connection_fields
#define uv_stream_connection_fields
Definition: win.h:420
stream
voidpf stream
Definition: bloaty/third_party/zlib/contrib/minizip/ioapi.h:136


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:37