47 SIO_GET_EXTENSION_FUNCTION_POINTER,
56 if (result == SOCKET_ERROR) {
82 WSAPROTOCOL_INFOW protocol_info;
95 if (1 == GetSystemMetrics(SM_CLEANBOOT))
return;
98 errorno = WSAStartup(MAKEWORD(2, 2), &wsa_data);
106 if (dummy != INVALID_SOCKET) {
107 opt_len = (
int)
sizeof protocol_info;
108 if (getsockopt(dummy,
111 (
char*) &protocol_info,
113 if (protocol_info.dwServiceFlags1 & XP1_IFS_HANDLES)
122 if (dummy != INVALID_SOCKET) {
123 opt_len = (
int)
sizeof protocol_info;
124 if (getsockopt(dummy,
127 (
char*) &protocol_info,
129 if (protocol_info.dwServiceFlags1 & XP1_IFS_HANDLES)
140 return ERROR_SUCCESS;
143 return ERROR_IO_PENDING;
162 return WSAEADDRINUSE;
178 return WSAECONNRESET;
183 return WSAECONNABORTED;
188 return WSAENETUNREACH;
191 return WSAEHOSTUNREACH;
207 return WSAEWOULDBLOCK;
223 return WSAECONNREFUSED;
231 return WSAEADDRNOTAVAIL;
235 return WSAEOPNOTSUPP;
242 (
status & (ERROR_SEVERITY_ERROR | ERROR_SEVERITY_WARNING))) {
272 LPWSAOVERLAPPED_COMPLETION_ROUTINE completion_routine) {
279 if (overlapped ==
NULL || completion_routine !=
NULL) {
280 WSASetLastError(WSAEINVAL);
284 info.BufferArray = buffers;
285 info.BufferCount = buffer_count;
289 if (*
flags & MSG_PEEK) {
293 if (*
flags & MSG_PARTIAL) {
297 if (!((
intptr_t) overlapped->hEvent & 1)) {
298 apc_context = (
void*) overlapped;
322 error = ERROR_SUCCESS;
326 error = WSA_IO_PENDING;
334 error = ERROR_SUCCESS;
339 error = ERROR_SUCCESS;
340 *
flags = MSG_PARTIAL | MSG_OOB;
344 error = ERROR_SUCCESS;
345 *
flags = MSG_PARTIAL;
353 WSASetLastError(
error);
355 if (
error == ERROR_SUCCESS) {
366 int* addr_len, WSAOVERLAPPED *overlapped,
367 LPWSAOVERLAPPED_COMPLETION_ROUTINE completion_routine) {
375 completion_routine !=
NULL) {
376 WSASetLastError(WSAEINVAL);
380 info.BufferArray = buffers;
381 info.BufferCount = buffer_count;
385 info.AddressLength = addr_len;
387 if (*
flags & MSG_PEEK) {
391 if (*
flags & MSG_PARTIAL) {
395 if (!((
intptr_t) overlapped->hEvent & 1)) {
396 apc_context = (
void*) overlapped;
420 error = ERROR_SUCCESS;
424 error = WSA_IO_PENDING;
432 error = ERROR_SUCCESS;
437 error = ERROR_SUCCESS;
438 *
flags = MSG_PARTIAL | MSG_OOB;
442 error = ERROR_SUCCESS;
443 *
flags = MSG_PARTIAL;
451 WSASetLastError(
error);
453 if (
error == ERROR_SUCCESS) {
470 if (overlapped !=
NULL) {
473 event = overlapped->hEvent;
480 apc_context = overlapped;
505 if (overlapped ==
NULL) {
509 DWORD r = WaitForSingleObject(event, INFINITE);
511 if (
r == WAIT_FAILED) {
512 DWORD saved_error = GetLastError();
514 WSASetLastError(saved_error);
526 error = ERROR_SUCCESS;
530 error = WSA_IO_PENDING;
538 WSASetLastError(
error);
540 if (
error == ERROR_SUCCESS) {
548 struct sockaddr_storage* storage) {
555 switch (
addr->sa_family) {
568 struct in6_addr init_sin6_addr = IN6ADDR_LOOPBACK_INIT;
RzBinInfo * info(RzBinFile *bf)
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd socket
void uv_fatal_error(const int errorno, const char *syscall)
memcpy(mem, inblock.get(), min(CONTAINING_RECORD(inblock.get(), MEMBLOCK, data) ->size, size))
static const char struct stat static buf struct stat static buf static vhangup int status
static struct sockaddr static addrlen static backlog const void static flags void flags
_W64 unsigned int uintptr_t
struct in6_addr sin6_addr
void error(const char *msg)
UV_EXTERN int uv_ip4_addr(const char *ip, int port, struct sockaddr_in *addr)
UV_EXTERN int uv_ip6_addr(const char *ip, int port, struct sockaddr_in6 *addr)
BOOL(PASCAL * LPFN_ACCEPTEX)(SOCKET sListenSocket, SOCKET sAcceptSocket, PVOID lpOutputBuffer, DWORD dwReceiveDataLength, DWORD dwLocalAddressLength, DWORD dwRemoteAddressLength, LPDWORD lpdwBytesReceived, LPOVERLAPPED lpOverlapped)
BOOL(PASCAL * LPFN_CONNECTEX)(SOCKET s, const struct sockaddr *name, int namelen, PVOID lpSendBuffer, DWORD dwSendDataLength, LPDWORD lpdwBytesSent, LPOVERLAPPED lpOverlapped)
sNtDeviceIoControlFile pNtDeviceIoControlFile
#define STATUS_PIPE_DISCONNECTED
#define STATUS_INVALID_ADDRESS
#define STATUS_INVALID_HANDLE
#define STATUS_QUOTA_EXCEEDED
#define STATUS_RECEIVE_EXPEDITED
#define STATUS_NETWORK_UNREACHABLE
#define STATUS_DEVICE_NOT_READY
#define STATUS_PROTOCOL_UNREACHABLE
#define STATUS_ADDRESS_ALREADY_EXISTS
#define STATUS_GRACEFUL_DISCONNECT
#define STATUS_INVALID_BUFFER_SIZE
#define STATUS_TRANSACTION_ABORTED
#define STATUS_ACCESS_DENIED
#define STATUS_OBJECT_PATH_NOT_FOUND
#define STATUS_HOST_UNREACHABLE
#define STATUS_WORKING_SET_QUOTA
#define STATUS_REMOTE_DISCONNECT
#define STATUS_INVALID_CONNECTION
#define STATUS_PORT_UNREACHABLE
#define STATUS_NETWORK_BUSY
#define STATUS_IO_TIMEOUT
#define STATUS_INVALID_NETWORK_RESPONSE
#define STATUS_CONNECTION_RESET
#define STATUS_NO_SUCH_DEVICE
#define STATUS_REQUEST_ABORTED
#define STATUS_CONNECTION_ABORTED
#define STATUS_NOT_SUPPORTED
#define STATUS_BAD_NETWORK_PATH
#define STATUS_CONNECTION_REFUSED
#define STATUS_INVALID_ADDRESS_COMPONENT
#define STATUS_ACCESS_VIOLATION
#define STATUS_NOT_IMPLEMENTED
#define STATUS_RECEIVE_PARTIAL
#define STATUS_CONNECTION_DISCONNECTED
#define STATUS_NO_SUCH_FILE
#define STATUS_LINK_TIMEOUT
#define STATUS_CONFLICTING_ADDRESSES
#define STATUS_REMOTE_NOT_LISTENING
#define STATUS_REMOTE_RESOURCES
#define STATUS_LINK_FAILED
#define STATUS_BUFFER_TOO_SMALL
#define STATUS_BUFFER_OVERFLOW
#define STATUS_UNEXPECTED_NETWORK_ERROR
#define STATUS_HOPLIMIT_EXCEEDED
#define STATUS_LOCAL_DISCONNECT
#define STATUS_SHARING_VIOLATION
#define STATUS_RECEIVE_PARTIAL_EXPEDITED
#define STATUS_INSUFFICIENT_RESOURCES
#define STATUS_OBJECT_NAME_NOT_FOUND
#define STATUS_REQUEST_NOT_ACCEPTED
#define STATUS_PAGEFILE_QUOTA
#define STATUS_TOO_MANY_ADDRESSES
#define STATUS_TOO_MANY_PAGING_FILES
#define STATUS_COMMITMENT_LIMIT
#define STATUS_OBJECT_TYPE_MISMATCH
if(dbg->bits==RZ_SYS_BITS_64)
int uv__convert_to_localhost_if_unspecified(const struct sockaddr *addr, struct sockaddr_storage *storage)
struct sockaddr_in uv_addr_ip4_any_
int WSAAPI uv_wsarecv_workaround(SOCKET socket, WSABUF *buffers, DWORD buffer_count, DWORD *bytes, DWORD *flags, WSAOVERLAPPED *overlapped, LPWSAOVERLAPPED_COMPLETION_ROUTINE completion_routine)
BOOL uv_get_connectex_function(SOCKET socket, LPFN_CONNECTEX *target)
int WSAAPI uv_msafd_poll(SOCKET socket, AFD_POLL_INFO *info_in, AFD_POLL_INFO *info_out, OVERLAPPED *overlapped)
int WSAAPI uv_wsarecvfrom_workaround(SOCKET socket, WSABUF *buffers, DWORD buffer_count, DWORD *bytes, DWORD *flags, struct sockaddr *addr, int *addr_len, WSAOVERLAPPED *overlapped, LPWSAOVERLAPPED_COMPLETION_ROUTINE completion_routine)
int uv_tcp_non_ifs_lsp_ipv4
int uv_tcp_non_ifs_lsp_ipv6
static BOOL uv_get_extension_function(SOCKET socket, GUID guid, void **target)
BOOL uv_get_acceptex_function(SOCKET socket, LPFN_ACCEPTEX *target)
void uv_winsock_init(void)
struct sockaddr_in6 uv_addr_ip6_any_
int uv_ntstatus_to_winsock_error(NTSTATUS status)
#define TDI_RECEIVE_PARTIAL
#define IOCTL_AFD_RECEIVE_DATAGRAM
#define TDI_RECEIVE_NORMAL
#define IOCTL_AFD_RECEIVE