Commit Graph

367 Commits

Author SHA1 Message Date
Sebastian Lackner ea371a2446 ws2_32: Add a missing call to release_sock_fd. 2015-04-14 16:51:18 +09:00
Bruno Jesus b69eb16816 ws2_32: Convert EBADF errno to ENOTSOCK. 2015-04-14 16:51:09 +09:00
Bruno Jesus 61ed82fc86 ws2_32: Restore the local socket address that was bound with filter for getsockname(). 2015-04-09 13:26:29 +09:00
Bruno Jesus 71c60d15d3 ws2_32: Handle SO_ERROR manually in getsockopt().
As soon as SO_ERROR is read from getsockopt it is reset in the kernel,
when attempting a non-blocking connection the wine server reads
SO_ERROR first so when the application tries to read the value it will
end with zero.
2015-04-08 23:16:40 +09:00
Bruno Jesus b34ca6f4fe ws2_32: Add a more generic function to retrieve socket errors from server. 2015-04-08 23:16:24 +09:00
Bruno Jesus d945234c13 ws2_32: Shortcut socket() to WSASocketW instead of WSASocketA. 2015-04-07 15:11:27 +09:00
Bruno Jesus a07d4e44d0 ws2_32: Better trace shutdown(). 2015-04-07 15:11:09 +09:00
Michael Müller 0601c86542 ws2_32: Don't return an error in WS_select when EINTR happens during timeout. 2015-04-06 16:10:14 +09:00
Bruno Jesus 5c8aad8d76 ws2_32: Fix copy & paste error in fd_sets_to_poll (Coverity). 2015-04-06 12:10:45 +09:00
Alexandre Julliard 125b079f60 ws2_32: Include wsnwlink.h even without IPX support. 2015-04-04 11:55:56 +09:00
Bruno Jesus 846febbc3d ws2_32: Better trace setsockopt/getsockopt. 2015-04-03 00:33:28 +09:00
Bruno Jesus e845bded34 ws2_32: Fix return value when receiving with MSG_OOB without data to read. 2015-03-31 14:49:50 +09:00
Bruno Jesus 10d51ce855 ws2_32: Check for OOB data in select() calls when not OOB_INLINED. 2015-03-30 16:32:50 +09:00
Bruno Jesus 10f7265270 ws2_32: Do not poll unbound descriptors. 2015-03-30 16:32:36 +09:00
Bruno Jesus b2556a2c34 ws2_32: Ensure sockets in exceptfds get set when an error occurs. 2015-03-30 16:31:53 +09:00
Bruno Jesus 57e7a562bd ws2_32: Add a helper to check if a socket is bound or not. 2015-03-30 16:31:23 +09:00
Bruno Jesus dcc0bae95d ws2_32: Convert send/recv flags to native system. 2015-03-30 16:30:48 +09:00
Bruno Jesus d73330e4d8 ws2_32: Don't try to receive data in an OOB_INLINED socket with MSG_OOB. 2015-03-30 16:29:39 +09:00
Francois Gouget ae6e1e2e38 ws2_32: Add support for WSA_FLAG_NO_HANDLE_INHERIT. 2015-03-17 14:17:46 +09:00
Qian Hong bed1525fa4 ws2_32: Improved error handling in gethostname when name length is insufficient. 2015-03-13 22:28:30 +09:00
Alexandre Julliard 91fc10847e ws2_32: Use Win32 APIs for interlocked functions. 2015-03-11 14:21:10 +09:00
Bruno Jesus b1fc62a213 ws2_32: Normalize socket tracing. 2015-03-11 12:46:27 +09:00
Michael Stefaniuc 58afc397cb ws2_32: Avoid using bitwise operations on BOOLs (PVS-Studio). 2015-03-10 21:36:24 +09:00
Alexandre Julliard 09cd7cf3e0 ws2_32: Set the completion event on the server side also for AcceptEx. 2015-03-07 15:17:05 +09:00
Sebastian Lackner 49cdebad4b ws2_32: Avoid kernel32 functions in system APC calls.
kernel32 functions might modify the last error, which should be avoided here.
2015-03-06 21:09:45 +09:00
Bruno Jesus bf36fb0216 ws2_32: Make closesocket() more robust. 2015-03-05 21:43:18 +09:00
Alexandre Julliard 0a241b0fcc ntdll: Allow specifying the user APC argument in the system APC callback. 2015-03-03 17:02:03 +09:00
Alexandre Julliard 4273b0d938 ws2_32: Don't queue a user APC when there is no callback function. 2015-03-03 17:01:48 +09:00
Alexandre Julliard e23233d791 ws2_32: Add a separate structure for async shutdowns.
Conflicts:
	dlls/ws2_32/socket.c
2015-03-03 16:53:04 +09:00
Alexandre Julliard 9fa69b5868 ws2_32: Add a common header to the async I/O structures. 2015-03-03 15:33:21 +09:00
Bruno Jesus 038399fcdd ws2_32: getaddrinfo must SetLastError on success or failure. 2015-01-20 11:11:43 +01:00
Bruno Jesus 632de943be ws2_32: Trace getpeername() result. 2015-01-15 11:33:32 +01:00
Bruno Jesus c0e4759d8d ws2_32: Prefer SetLastError over WSASetLastError. 2015-01-13 20:48:34 +01:00
Bruno Jesus ab1eee505b ws2_32: Ensure recv functions set last error to zero when they succeed. 2015-01-13 17:52:04 +01:00
Bruno Jesus ed281c743c ws2_32: Print the correct variable. 2015-01-09 11:49:46 +01:00
Francois Gouget b46a62843f ws2_32: Add a trailing '\n' to a TRACE() call. 2015-01-06 18:19:24 +01:00
Francois Gouget f2eaf730a5 ws2_32: Add a trailing '\n' to a FIXME() call. 2015-01-05 20:16:01 +01:00
Bruno Jesus 1c21aeeebc include: Add support for WS_ prefixed IPX names in wsnwlink.h. 2015-01-05 20:14:02 +01:00
Bruno Jesus fe127ac36c ws2_32: Better trace __WSAFDIsSet. 2015-01-05 20:12:08 +01:00
Bruno Jesus 9d9e1cc9ae ws2_32: Ensure an IPv6 is not recognized as IPv4 in WSAStringToAddress. 2014-12-31 11:37:18 +01:00
Bruno Jesus 1c4cb63036 ws2_32: Implement getsockopt(SO_BSP_STATE). 2014-12-09 20:05:58 +01:00
Bruno Jesus d7a8beb0f7 ws2_32: Filter unset bits when argument is smaller than 32 bits. 2014-12-05 20:47:40 +01:00
Sebastian Lackner d824b1ac3c ws2_32: Improve implementation of get_poll_results. 2014-12-02 15:04:39 +01:00
Joachim Priesner 6eba688f2c ws2_32: Use qsort() to order routes by metric in WS_get_local_ips. 2014-12-02 13:07:33 +01:00
Piotr Caban 459837ece4 ws2_32: Add support for overlapping fd_sets in select. 2014-11-28 19:18:10 +01:00
Bruno Jesus 344bc6d72b ws2_32: Add tests and implement inet_pton.
Special thanks to Erich Hoover.
2014-11-04 13:28:16 +09:00
Alistair Leslie-Hughes a5df09b404 ws2_32: Make SOCKET output consistent. 2014-10-08 10:18:55 +02:00
Henri Verbeet c0e49c5c40 ws2_32: Simplify some address calculations for SIO_ADDRESS_LIST_QUERY. 2014-10-07 20:22:04 +02:00
Henri Verbeet 32724def72 ws2_32: Return an error if "out_buff" is NULL for SIO_ADDRESS_LIST_QUERY. 2014-10-07 20:22:03 +02:00
Henri Verbeet b914a6461b ws2_32: Return WSAEINVAL if "out_size" is smaller than the minimum size for SIO_ADDRESS_LIST_QUERY. 2014-10-06 19:38:12 +02:00