Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Functions | |
static BOOL | uv_get_extension_function (SOCKET socket, GUID guid, void **target) |
BOOL | uv_get_acceptex_function (SOCKET socket, LPFN_ACCEPTEX *target) |
BOOL | uv_get_connectex_function (SOCKET socket, LPFN_CONNECTEX *target) |
void | uv_winsock_init (void) |
int | uv_ntstatus_to_winsock_error (NTSTATUS status) |
int WSAAPI | uv_wsarecv_workaround (SOCKET socket, WSABUF *buffers, DWORD buffer_count, DWORD *bytes, DWORD *flags, WSAOVERLAPPED *overlapped, LPWSAOVERLAPPED_COMPLETION_ROUTINE completion_routine) |
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 WSAAPI | uv_msafd_poll (SOCKET socket, AFD_POLL_INFO *info_in, AFD_POLL_INFO *info_out, OVERLAPPED *overlapped) |
int | uv__convert_to_localhost_if_unspecified (const struct sockaddr *addr, struct sockaddr_storage *storage) |
Variables | |
int | uv_tcp_non_ifs_lsp_ipv4 |
int | uv_tcp_non_ifs_lsp_ipv6 |
struct sockaddr_in | uv_addr_ip4_any_ |
struct sockaddr_in6 | uv_addr_ip6_any_ |
int uv__convert_to_localhost_if_unspecified | ( | const struct sockaddr * | addr, |
struct sockaddr_storage * | storage | ||
) |
Definition at line 547 of file winsock.c.
References addr, AF_INET, AF_INET6, memcpy(), NULL, in_addr::s_addr, sockaddr_in6::sin6_addr, sockaddr_in::sin_addr, and uv_addr_ip6_any_.
Referenced by uv__udp_try_send(), and uv_tcp_try_connect().
BOOL uv_get_acceptex_function | ( | SOCKET | socket, |
LPFN_ACCEPTEX * | target | ||
) |
Definition at line 65 of file winsock.c.
References socket, uv_get_extension_function(), and WSAID_ACCEPTEX.
Referenced by uv_tcp_listen().
BOOL uv_get_connectex_function | ( | SOCKET | socket, |
LPFN_CONNECTEX * | target | ||
) |
Definition at line 71 of file winsock.c.
References socket, uv_get_extension_function(), and WSAID_CONNECTEX.
Referenced by uv_tcp_try_connect().
|
static |
Definition at line 41 of file winsock.c.
References bytes, DWORD, FALSE, NULL, socket, and TRUE.
Referenced by uv_get_acceptex_function(), and uv_get_connectex_function().
int WSAAPI uv_msafd_poll | ( | SOCKET | socket, |
AFD_POLL_INFO * | info_in, | ||
AFD_POLL_INFO * | info_out, | ||
OVERLAPPED * | overlapped | ||
) |
Definition at line 461 of file winsock.c.
References DWORD, error(), FALSE, HANDLE, if(), IOCTL_AFD_POLL, NULL, pNtDeviceIoControlFile, r, socket, status, _IO_STATUS_BLOCK::Status, STATUS_PENDING, STATUS_SUCCESS, and uv_ntstatus_to_winsock_error().
Referenced by uv__fast_poll_submit_poll_req(), and uv_poll_close().
Definition at line 137 of file winsock.c.
References DWORD, FACILITY_NTWIN32, status, STATUS_ACCESS_DENIED, STATUS_ACCESS_VIOLATION, STATUS_ADDRESS_ALREADY_EXISTS, STATUS_BAD_NETWORK_PATH, STATUS_BUFFER_OVERFLOW, STATUS_BUFFER_TOO_SMALL, STATUS_CANCELLED, STATUS_COMMITMENT_LIMIT, STATUS_CONFLICTING_ADDRESSES, STATUS_CONNECTION_ABORTED, STATUS_CONNECTION_DISCONNECTED, STATUS_CONNECTION_REFUSED, STATUS_CONNECTION_RESET, STATUS_DEVICE_NOT_READY, STATUS_GRACEFUL_DISCONNECT, STATUS_HOPLIMIT_EXCEEDED, STATUS_HOST_UNREACHABLE, STATUS_INSUFFICIENT_RESOURCES, STATUS_INVALID_ADDRESS, STATUS_INVALID_ADDRESS_COMPONENT, STATUS_INVALID_BUFFER_SIZE, STATUS_INVALID_CONNECTION, STATUS_INVALID_HANDLE, STATUS_INVALID_NETWORK_RESPONSE, STATUS_IO_TIMEOUT, STATUS_LINK_FAILED, STATUS_LINK_TIMEOUT, STATUS_LOCAL_DISCONNECT, STATUS_NETWORK_BUSY, STATUS_NETWORK_UNREACHABLE, STATUS_NO_MEMORY, STATUS_NO_SUCH_DEVICE, STATUS_NO_SUCH_FILE, STATUS_NOT_IMPLEMENTED, STATUS_NOT_SUPPORTED, STATUS_OBJECT_NAME_NOT_FOUND, STATUS_OBJECT_PATH_NOT_FOUND, STATUS_OBJECT_TYPE_MISMATCH, STATUS_PAGEFILE_QUOTA, STATUS_PENDING, STATUS_PIPE_DISCONNECTED, STATUS_PORT_UNREACHABLE, STATUS_PROTOCOL_UNREACHABLE, STATUS_QUOTA_EXCEEDED, STATUS_REMOTE_DISCONNECT, STATUS_REMOTE_NOT_LISTENING, STATUS_REMOTE_RESOURCES, STATUS_REQUEST_ABORTED, STATUS_REQUEST_NOT_ACCEPTED, STATUS_SHARING_VIOLATION, STATUS_SUCCESS, STATUS_TIMEOUT, STATUS_TOO_MANY_ADDRESSES, STATUS_TOO_MANY_PAGING_FILES, STATUS_TRANSACTION_ABORTED, STATUS_UNEXPECTED_NETWORK_ERROR, and STATUS_WORKING_SET_QUOTA.
Referenced by uv_msafd_poll(), uv_wsarecv_workaround(), and uv_wsarecvfrom_workaround().
void uv_winsock_init | ( | void | ) |
Definition at line 78 of file winsock.c.
References AF_INET, AF_INET6, int, SOCK_STREAM, socket, SOL_SOCKET, uv_addr_ip4_any_, uv_addr_ip6_any_, uv_fatal_error(), uv_ip4_addr(), uv_ip6_addr(), uv_tcp_non_ifs_lsp_ipv4, and uv_tcp_non_ifs_lsp_ipv6.
Referenced by uv_init().
int WSAAPI uv_wsarecv_workaround | ( | SOCKET | socket, |
WSABUF * | buffers, | ||
DWORD | buffer_count, | ||
DWORD * | bytes, | ||
DWORD * | flags, | ||
WSAOVERLAPPED * | overlapped, | ||
LPWSAOVERLAPPED_COMPLETION_ROUTINE | completion_routine | ||
) |
Definition at line 270 of file winsock.c.
References AFD_OVERLAPPED, bytes, DWORD, error(), flags, HANDLE, if(), info(), _IO_STATUS_BLOCK::Information, IOCTL_AFD_RECEIVE, NULL, pNtDeviceIoControlFile, _IO_STATUS_BLOCK::Pointer, socket, status, _IO_STATUS_BLOCK::Status, STATUS_BUFFER_OVERFLOW, STATUS_PENDING, STATUS_RECEIVE_EXPEDITED, STATUS_RECEIVE_PARTIAL, STATUS_RECEIVE_PARTIAL_EXPEDITED, STATUS_SUCCESS, TDI_RECEIVE_NORMAL, TDI_RECEIVE_PARTIAL, TDI_RECEIVE_PEEK, and uv_ntstatus_to_winsock_error().
Referenced by uv_udp_set_socket().
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 | ||
) |
Definition at line 364 of file winsock.c.
References addr, AFD_OVERLAPPED, bytes, DWORD, error(), flags, HANDLE, if(), info(), _IO_STATUS_BLOCK::Information, IOCTL_AFD_RECEIVE_DATAGRAM, NULL, pNtDeviceIoControlFile, _IO_STATUS_BLOCK::Pointer, socket, status, _IO_STATUS_BLOCK::Status, STATUS_BUFFER_OVERFLOW, STATUS_PENDING, STATUS_RECEIVE_EXPEDITED, STATUS_RECEIVE_PARTIAL, STATUS_RECEIVE_PARTIAL_EXPEDITED, STATUS_SUCCESS, TDI_RECEIVE_NORMAL, TDI_RECEIVE_PARTIAL, TDI_RECEIVE_PEEK, and uv_ntstatus_to_winsock_error().
Referenced by uv_udp_set_socket().
struct sockaddr_in uv_addr_ip4_any_ |
Definition at line 31 of file winsock.c.
Referenced by uv__udp_connect(), uv__udp_recv_start(), uv__udp_send(), uv__udp_set_membership4(), uv__udp_set_source_membership4(), uv__udp_try_send(), uv_tcp_listen(), uv_tcp_try_connect(), and uv_winsock_init().
struct sockaddr_in6 uv_addr_ip6_any_ |
Definition at line 31 of file winsock.c.
Referenced by uv__convert_to_localhost_if_unspecified(), uv__udp_connect(), uv__udp_send(), uv__udp_set_membership6(), uv__udp_set_source_membership6(), uv__udp_try_send(), uv_tcp_try_connect(), and uv_winsock_init().
int uv_tcp_non_ifs_lsp_ipv4 |
Definition at line 30 of file winsock.c.
Referenced by uv_tcp_set_socket(), uv_tcp_try_cancel_io(), and uv_winsock_init().
int uv_tcp_non_ifs_lsp_ipv6 |
Definition at line 31 of file winsock.c.
Referenced by uv_tcp_set_socket(), uv_tcp_try_cancel_io(), and uv_winsock_init().