Commit Graph

284 Commits

Author SHA1 Message Date
Bruno Jesus a82278c349 ws2_32: Fix TRACE format in WS_getsockname. 2012-10-02 14:08:37 +02:00
Michael Stefaniuc 6132ed66a6 ws2_32: Avoid a FALSE:TRUE conditional expression. 2012-08-15 12:12:54 +02:00
Francois Gouget 6333fa753a Assorted spelling fixes. 2012-07-03 12:03:29 +02:00
Per Johansson a239e8ed27 ws2_32: In WSAIoctl(SIO_GET_INTERFACE_LIST), skip interfaces with no IPv4 address. 2012-06-22 14:09:51 +02:00
Bruno Jesus b2af5e1d31 ws2_32: Fix hostent memory allocation. 2012-06-12 10:20:10 +02:00
Erich Hoover 7e9e8b6b80 ws2_32: Use STATUS_MORE_PROCESSING_REQUIRED to indicate that the AcceptEx async should not send a completion. 2012-06-07 16:07:02 +02:00
Francois Gouget fac36c55e9 Assorted typo, spelling, wording and case fixes. 2012-05-15 16:26:43 +02:00
André Hentschel c5089d18b7 ws2_32: Remove unneeded shadow variable. 2012-04-23 11:42:45 +02:00
Erich Hoover 1d49c66929 ws2_32: Implement IPV6_UNICAST_IF socket option. 2012-04-10 16:21:28 +02:00
Erich Hoover 313d36d5aa ws2_32: Implement IP_UNICAST_IF socket option. 2012-04-10 16:21:28 +02:00
Jeff Latimer a84f7204af ws2_32: Make a common fixme more meaningful and return success. 2012-04-02 12:39:12 +02:00
Ričardas Barkauskas 1bbe92e79b ws2_32: Don't post completion packet if sending fails with error immediately. 2011-12-28 18:59:48 +01:00
Hans Leidekker c42989ed9a ws2_32: Return the right value for SO_CONNECT_TIME if the socket is not connected. 2011-12-19 20:15:51 +01:00
Francois Gouget c7cb3e6cb2 configure: Use errno.h instead of the non-standard sys/errno.h header. 2011-12-15 17:46:38 +01:00
Francois Gouget 3fe2d6e5fd include: Update the nldef.h and *mib.h headers. 2011-12-15 10:49:17 +01:00
Francois Gouget 644cd0ae17 include: Add a missing wincrypt.h include directive to mprapi.h.
Also add the USE_WC_PREFIX macro so one can cleanly deal with the CMSG_DATA conflict with sys/socket.h.
2011-12-13 18:59:03 +01:00
Bruno Jesus da6efc8f62 ws2_32: Fix a function name comment. 2011-12-05 12:22:54 +01:00
Bruno Jesus 743929e4f4 ws2_32: Fix function GetAcceptExSockaddrs. 2011-11-28 16:40:50 +01:00
Hans Leidekker 8e5d5bf58a ws2_32: Pass NULL nodename on to native getaddrinfo. 2011-11-24 17:17:30 +01:00
Bruno Jesus 06d759ed7e ws2_32: Invert SIOCATMARK logic. 2011-11-21 16:16:34 +01:00
Francois Gouget c9ae82da93 ws2_32: Delete the static critical section when unloading the dll. 2011-11-17 11:37:44 +01:00
Hans Leidekker 75be2284e1 ws2_32: Fix handling of NULL and empty hostname in getaddrinfo/GetAddrInfoW. 2011-11-15 19:37:29 +01:00
Andrew Talbot a38b3008c5 ws2_32: Remove unneeded address-of operator from array name. 2011-11-04 14:45:01 +01:00
Andrew Talbot 35555862fc ws2_32: Replace switch statement with more suitable if statement. 2011-10-21 12:11:51 +02:00
Andrew Talbot 4bebe6287c ws2_32: Mark a fall-through in a switch statement. 2011-10-21 12:11:45 +02:00
Bruno Jesus d278834dab ws2_32: Fix UDP LINGER support in getsockopt. 2011-10-04 15:26:22 -05:00
Hans Leidekker 94f431e3ee ws2_32: Avoid a crash in WS2_recv_base. 2011-09-14 14:55:46 +02:00
Bruno Jesus fd7b94bcd2 ws2_32: SO_OOBINLINE sockets must always return TRUE to SIOCATMARK request. 2011-09-13 17:17:00 +02:00
Bruno Jesus 8f3dabf3c4 ws2_32: Remove an unnecessary test. 2011-09-09 13:34:13 +02:00
Bruno Jesus 2e08b31f7c ws2_32: Fix support for SIO_KEEPALIVE_VALS. 2011-09-08 20:08:06 +02:00
Bruno Jesus 312f50a26f ws2_32: Avoid an unhandled exception in WSAIoctl. 2011-09-06 12:23:55 +02:00
Bruno Jesus 733c7f2c72 ws2_32: Fix a leak in WS2_AcceptEx. 2011-09-05 10:56:04 +02:00
Bruno Jesus bebc425bb5 ws2_32: Fix false-positive write fds on select(). 2011-08-24 11:45:18 +02:00
Frédéric Delanoy 7e309601f3 dlls: Assorted spelling fixes. 2011-08-03 14:15:50 +02:00
Frédéric Delanoy 754dffe1e5 ws2_32: Remove dead assignment (Clang). 2011-07-06 11:27:12 +02:00
Austin English eba8216fcc ws2_32: Define sipx_network / sipx_node for DragonFly BSD. 2011-07-01 17:29:37 +02:00
André Hentschel dc16a01fdf ws2_32: Handle null pointer for linger values. 2011-06-21 14:51:14 +02:00
Hans Leidekker 3581d2c6d1 ws2_32: Accept NULL lpNumberOfBytesSent for overlapped calls to WSASend/To. 2011-06-14 13:09:29 +02:00
Andrew Nguyen e9e0df23b8 ws2_32/tests: Avoid casting a WSAAccept function pointer parameter in test_accept. 2011-06-03 17:43:59 +02:00
Alexandre Julliard de0b4a67d8 ws2_32: Signal overlapped completion in WSAIoctl. 2011-04-19 12:47:57 +02:00
Alexandre Julliard 7e208f4896 ws2_32: Merge ioctlsocket implementation into WSAIoctl. 2011-04-19 11:57:37 +02:00
Alexandre Julliard c4b67221d4 ws2_32: Use saner parameter names in WSAIoctl. 2011-04-19 11:34:42 +02:00
Hans Leidekker 8f07cdf975 ws2_32: Implement GetNameInfoW. 2011-03-29 13:51:47 +02:00
André Hentschel 42d3bd713d ws2_32: Downgrade FIXME for WS_SIO_SET_COMPATIBILITY_MODE to a TRACE. 2011-03-14 19:31:31 +01:00
Aric Stewart f520dec3e1 ws2_32: async_send with no buffers does not need to do any work. 2011-03-07 11:07:54 +01:00
Alexandre Goujon 778757ba74 ws2_32: Make gethostbyname fail if WSAStartup was not called before. 2011-02-23 14:58:09 +01:00
Marcus Meissner 09e29486ae ws2_32: Implemented SO_CONNECT_TIME stub. 2011-01-26 17:31:40 +01:00
Mike Kaplinskiy 27b51ce6b0 ws2_32: Finish an overlapped send only if we sent everything. 2011-01-24 14:43:27 +01:00
Mike Kaplinskiy a06144d9ca ws2_32: Use the iosb to keep track of how many bytes we sent. 2011-01-24 14:43:27 +01:00
Mike Kaplinskiy 388398bd05 ws2_32: Fix up iovecs after transmission in WS2_send instead of WS2_sendto. 2011-01-24 14:43:27 +01:00
Mike Kaplinskiy e6fee3596d ws2_32: Allow sending FD_WRITE right after scheduling the async.
The server won't actually send the event until the request is done.
2011-01-24 14:43:27 +01:00
Gerald Pfeifer 37f5080e1b ws2_32: Restructure and simplify debugstr_wsaioctl a bit. 2011-01-10 10:44:51 +01:00
Alexandre Julliard 58a1c0d50d ws2_32: Fix a compile failure when control messages are not supported. 2010-12-08 16:25:05 +01:00
Erich Hoover 54b4f836fd ws2_32: Add support for WSARecvMsg and IP_PKTINFO. 2010-12-07 17:04:11 +01:00
Juan Lang 7f5583aee9 ws2_32: Set length on successful return from WSAStringToAddress. 2010-12-03 11:04:16 +01:00
André Hentschel 8b913427c0 ws2_32: Map AI_ADDRCONFIG. 2010-11-23 13:16:53 +01:00
Francois Gouget 76039b3728 ws2_32: Add a trailing '\n' to a FIXME() call. 2010-11-02 13:16:47 +01:00
Louis Lenders cb65dbf3d8 ws2_32: Return SOCKET_ERROR in stubbed WSALookupServiceNext, to prevent apps from looping forever. 2010-10-28 11:39:24 +02:00
Dan Kegel 6733c40d78 ws2_32: Null select() should fail with WSAEINVAL. 2010-10-18 19:47:49 +02:00
Juan Lang 9addae9d66 ws2_32: Implement WSAIoctl for SIO_ROUTING_INTERFACE_QUERY. 2010-09-29 10:05:55 +02:00
Francois Gouget d33ff209b3 ws2_32: Make WS2_AcceptEx() and WS2_GetAcceptExSockaddrs() static. 2010-09-29 10:05:27 +02:00
Mike Kaplinskiy f138a5724d ws2_32: Implement SO_UPDATE_ACCEPT_CONTEXT. 2010-09-28 17:33:19 +02:00
Juan Lang 1e09999350 ws2_32: Unpack ioctl codes in WSAIoctl trace. 2010-09-27 12:10:52 +02:00
Mike Kaplinskiy cf72f406ec ws2_32: Implement AcceptEx and GetAcceptExSockaddrs. 2010-09-22 20:04:32 +02:00
Alexandre Julliard 4cbfe4e1ef ws2_32: Fail when select is called with an invalid fd.
Based on a patch by Vincent Povirk.
2010-09-20 14:56:55 +02:00
Austin English 4ada99aa83 ws2_32: Add a stub for WSANSPIoctl. 2010-09-09 19:28:32 +02:00
Francois Gouget 21541da0bb ws2_32: Add a trailing '\n' to a TRACE() call. 2010-08-24 15:22:35 +02:00
Wolfgang Schwotzer 6d5aaaa5e0 ws2_32: Initialize variable lsap_sel. 2010-08-20 13:21:28 +02:00
Mike Kaplinskiy 50ef3a2018 ws2_32: Fix a bad pointer crash. 2010-08-16 15:54:23 +02:00
Mike Kaplinskiy d596fa1859 ws2_32: Implement SO_UPDATE_CONNECT_CONTEXT. 2010-08-16 13:45:43 +02:00
Dmitry Timoshkov e0bbcea6fb ws2_32: Rearrange the code to avoid a needless release_sock_fd(). 2010-08-04 12:33:27 +02:00
Mike Kaplinskiy 4d6982e684 ws2_32: Implement ConnectEx. 2010-08-03 12:02:47 +02:00
Mike Kaplinskiy 15cc301728 ws2_32: Create a wrapper for connect. 2010-08-03 12:01:22 +02:00
Mike Kaplinskiy fae0b6fa63 ws2_32: Don't set FD_READ/FD_WRITE before the connection is complete. 2010-08-03 12:00:48 +02:00
Austin English cdf091f2c9 ws2_32: Remove unused variable. 2010-07-21 13:23:59 +02:00
Howell Tam 8b7ec05bd2 ws2_32: Wrapped WSASendTo/WSARecvFrom with a different function name. 2010-07-19 15:13:24 +02:00
Alexandre Goujon 73b2f5708f ws2_32: Add host unreachable case. 2010-07-05 12:59:47 +02:00
Kai Blin 8a00bdddc0 ws2_32: Stub out WS_SIO_UDP_CONNRESET WSioctl. 2010-05-11 16:28:33 +02:00
Mike Kaplinskiy df710826e1 ws2_32: Improve SIO_GET_EXTENSION_FUNCTION_POINTER stub. 2010-05-10 13:43:43 +02:00
Stefan Leichter 5ccbcfdec7 ws2_32: In setsockopt implement IPV6_ADD_MEMBERSHIP and IPV6_DROP_MEMBERSHIP only when supported. 2010-04-05 11:37:11 +02:00
Stefan Leichter 89aaf74f1f ws2_32: Partly implement level IPPROTO_IPV6 of getsockopt. 2010-04-02 10:38:31 +02:00
Stefan Leichter d0eaf2ce0e ws2_32: Partly implement level IPPROTO_IPV6 of setsockopt. 2010-03-31 16:12:07 +02:00
Mikhail Maroukhine cad91b8d50 ws2_32: Fix compiler warnings with flag -Wcast-qual. 2010-03-29 12:18:22 +02:00
Mike Kaplinskiy 798c9e5161 ws2_32: Use ntstatus in overlapped functions. 2010-03-23 12:35:56 +01:00
Jason Edmeades 6cea48b928 ws2_32: Support indefinite receive timeouts. 2010-02-12 11:54:30 +01:00
Marcus Meissner d281252196 ws2_32: Check namelen before dereferencing it in TRACE (Coverity). 2010-02-04 17:27:27 +01:00
Andrew Nguyen 1bcc3aa35c ws2_32: Fix parameter validation order in getpeername. 2010-02-03 11:07:21 +01:00
Erich Hoover 896af79093 ws2_32: Fix allocating a hostent with no h_aliases list. 2009-12-15 16:09:12 +01:00
Erich Hoover 355818ae1e ws2_32: Return the full list of local IP addresses when gethostbyname() is called on the local hostname. 2009-12-10 12:51:52 +01:00
Erich Hoover f9f9566c74 ws2_32: Separate out hostent creation from duplication. 2009-12-10 12:51:47 +01:00
Roderick Colenbrander 6a8aae0bec ws2_32: Use winediag for socket failures. 2009-12-08 17:43:45 +01:00
Hans Leidekker 140eede67d ws2_32: Avoid accessing uninitialized memory in GetAddrInfoW.
Found by valgrind.
2009-10-29 13:50:58 +01:00
Dmitriy Anisimkov f951deec6f ws2_32: Ignore EINTR poll result code in WS_select. 2009-10-21 17:02:43 +02:00
Juan Lang d1963ee2f1 ws2_32: Don't overwrite address length before checking it. 2009-10-19 14:41:49 +02:00
Alexandre Julliard 190d7e74ec ws2_32: Set Information to 0 upon completion of an async shutdown. 2009-10-19 11:44:20 +02:00
Francois Gouget 78d413d424 ws2_32: Make wsaErrno() and wsaHerrno() static. 2009-10-07 15:17:24 +02:00
Alexandre Julliard 7dc9ea8950 ws2_32: Make winsock.dll into a stand-alone 16-bit module. 2009-09-29 20:05:26 +02:00
Alexandre Julliard 4ad0c4d86c ws2_32: Move the getXXXbyYYY critical section to socket.c. 2009-09-29 19:36:16 +02:00
Mike Kaplinskiy 3905c7a030 ws2_32: Try accepting a connection before blocking. 2009-09-25 13:42:36 +02:00
Mike Kaplinskiy 13eef3d691 ws2_32: Remember to convert ports to network byte order. 2009-09-15 16:41:25 -05:00