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
Juan Lang
8e42dbf7a5
ws2_32: Add a fixme for IPPROTO_IPV6.
2009-09-02 10:24:08 +02:00
Detlef Riekenberg
3d326eb5a8
ws2_32: Set WSAEINVAL on invalid levels in set+getsockopt.
2009-08-25 11:31:24 +02:00
Juan Lang
cdffa87666
ws2_32: Implement getsockopt(SOL_IRLMP, IRLMP_ENUMDEVICES).
2009-08-13 17:04:00 +02:00
Juan Lang
c3f2eceaf2
ws2_32: Add debug support for IrDA addresses.
2009-08-13 17:03:53 +02:00
Juan Lang
f166a9dfbd
ws2_32: Implement ws_sockaddr_u2ws for AF_IRDA.
2009-08-13 17:03:45 +02:00
Juan Lang
2856794e66
ws2_32: Implement ws_sockaddr_ws2u for AF_IRDA.
2009-08-13 17:03:38 +02:00
Juan Lang
643466208b
ws2_32: Allow binding to IrDA sockets if IrDA support is compiled in.
2009-08-13 17:03:14 +02:00
Juan Lang
b1a80b8837
ws2_32: Add AF_IRDA to the address family map.
2009-08-13 17:00:58 +02:00
Jeff Latimer
694b6955a3
ws2_32/tests: Tests for invalid conditions in InetNtop.
2009-08-10 17:09:26 +02:00
Jeff Latimer
f40cbb3d77
ws2_32: Add the scope_id to the IPv6 address string if present.
2009-08-05 15:30:16 +02:00
Jeff Latimer
4028a0e9f0
ws2_32: Add the port to the IPv6 address string if present.
2009-08-05 15:30:16 +02:00
Juan Lang
90c52c0180
ws2_32: Add debug support for IPv6 addresses.
2009-08-04 12:49:56 +02:00
Rein Klazes
d8f962e69c
ws2_32: Do not make the unix file descriptor blocking. Too many places in the socket code assume it is not.
2009-07-24 11:51:35 +02:00
Marcus Meissner
f8600c706d
ws2_32: Fixed buffer size to MultiByteToWideChar.
2009-07-20 12:20:22 +02:00
Jeff Latimer
4a8e36548d
ws2_32: IPv6 functionality for WSAAddressToStringW.
2009-07-17 13:33:41 +02:00
Juan Lang
778a1d85c4
ws2_32: Make sure sockaddr is big enough when formatting an IPv6 address.
2009-07-17 11:14:48 +02:00
Juan Lang
a9a1cd269c
ws2_32: Remove an unnecessary cast.
2009-07-17 11:14:43 +02:00
Alexandre Julliard
48656f5596
ws2_32: Check buffers before recvmsg() to trigger write watches.
2009-07-09 15:21:30 +02:00
Alexandre Julliard
445567ea95
ws2_32: Use SIZE_T instead of size_t for inet_ntop argument.
2009-04-29 15:52:29 +02:00
Jeff Latimer
2fa64f52e7
ws2_32: IPv6 functionality for WSAAddressToStringA.
2009-04-29 15:50:22 +02:00
Jeff Latimer
4d4819d8c4
ws2_32: Make inet_ntop conform to msdn definition.
2009-04-27 14:29:28 +02:00
Hans Leidekker
fea6d0a764
ws2_32: Implement GetAddrInfoW and FreeAddrInfoW.
2009-04-27 13:22:54 +02:00
Jeff Latimer
eab59e84ac
ws2_32: WSAAddressToStringW should return length of unicode address string should and include the trailing null.
2009-04-20 17:40:18 +02:00
Jeff Latimer
bf40710516
ws2_32: WSAAddressToStringA should return length of ANSI address string and should include the trailing null.
2009-04-20 17:39:56 +02:00
Michael Stefaniuc
0847e7d826
ws2_32: Use better types for some variables.
2009-04-20 14:12:32 +02:00
Alexandre Julliard
a46441bd02
ws2_32: Fix an error return value in bind().
2009-01-08 17:29:31 +01:00
Alexandre Julliard
6db201080f
server: Make the various async I/O parameters client_ptr_t instead of void pointers.
2008-12-30 21:09:41 +01:00
Alexandre Julliard
f507ccbf52
server: Specify the user APC to call only once the system APC has executed.
2008-12-30 20:51:55 +01:00
Francois Gouget
da1a352972
configure: Fix the linux/ipx.h check.
2008-12-29 11:35:58 +01:00
Alexandre Julliard
a7b3efde0e
server: Store the async handle inside the async_data_t structure.
2008-12-26 12:33:21 +01:00
Alexandre Julliard
bc85fb4cd3
ws2_32: Added implementation for inet_ntop.
2008-12-22 19:40:08 +01:00
Alexandre Julliard
f6fa72d770
server: Make async I/O transfer sizes always 32-bit.
2008-12-15 13:30:25 +01:00
Andrew Talbot
8ee1634f41
ws2_32: Sign-compare warnings fix.
2008-12-11 14:32:06 +01:00
Hans Leidekker
c58541e20a
ws2_32: Implement WSAIoctl(SIO_KEEPALIVE_VALS).
...
Based on a patch by Philippe Rétornaz.
2008-12-09 12:46:52 +01:00
Alexandre Julliard
7fdadbb377
server: Add functions for conversions between server user handles and pointer-style handles.
2008-12-08 16:58:20 +01:00
Alexandre Julliard
d1b3d484f7
server: Add functions for conversions between server object handles and pointer-style handles.
2008-12-08 16:05:17 +01:00
Jeff Zaroyko
75e511f3a7
ws2_32: Test WSAAccept optional callback parameter before trying to use it.
2008-11-06 11:10:18 +01:00
Michael Stefaniuc
4f199a10ad
Remove the remaining casts of NULL.
2008-11-03 13:42:09 +01:00
Aric Stewart
6b4d22ca2c
ws2_32: Only set the overlapped hEvent if it exists.
2008-10-29 13:43:44 +01:00
Alexandre Julliard
fe7c5d86e7
ws2_32: Allow arbitrary-sized iovecs again in WSASendTo and WSARecvFrom.
2008-10-09 12:57:33 +02:00
Jeff Zaroyko
15978ddc01
ws2_32: ioctlsocket should try to check if argp is valid.
2008-09-10 11:07:51 +02:00
Damjan Jovanovic
b904dd783c
ws2_32: Only enable FD_WRITE on short sends.
2008-09-08 14:09:16 +02:00
Daniel Santos
b54b282a4f
ws2_32: WSASendTo() should clear last error on success.
2008-07-18 12:30:31 +02:00
Andrew Talbot
a42a61eee1
ws2_32: Remove unneeded address-of operators from array names.
2008-07-14 11:50:48 +02:00
Kai Blin
1d77d2a826
ws2_32: Prevent segfault in trace for NULL AddressString.
2008-07-04 19:35:41 +02:00
Jeff Zaroyko
30e6b81dd1
ws2_32: Ignore lpFrom for connected sockets.
...
If the the socket is connected and lpFrom is not NULL, Linux will set
msg_namelen to zero and ignore msg_name in recvfrom so don't try try
to update lpFrom.
2008-06-21 11:36:15 +02:00
Albert Lee
b4057a6f39
ws2_32: WS_getaddrinfo TRACE message can crash Wine.
2008-06-18 15:21:48 +02:00
Kai Blin
36d6310599
ws2_32: Change back magic 127.12.34.56 to loopback on connect().
2008-05-28 11:31:22 +02:00
Kai Blin
cabb350f2f
ws2_32: Add support for FROM_PROTOCOL_INFO to WSASocket().
2008-05-26 18:00:18 +02:00
Andrew Talbot
0c1407008d
ws2_32: Remove unused function.
2008-05-22 11:28:59 +02:00
Kai Blin
c0a3ac5006
ws2_32: Handle gethostbyname call failure, add tests.
2008-04-28 14:33:03 +02:00
Kai Blin
1bcbe8651a
ws2_32: Work around the host name resolving to 127.x.x.x when using that for binding.
2008-04-24 22:08:54 +02:00
Francois Gouget
f5ea0fd2e4
ws2_32: s/#if/#ifdef/ so it still works if HAVE_XXX is not defined.
2008-03-06 17:38:59 +01:00
James Hawkins
7b56757cf6
janitorial: Remove links to any microsoft site.
2008-03-01 12:17:13 +01:00
Andrew Talbot
e27ede4070
ws2_32: Remove unneeded casts.
2008-02-08 11:02:45 +01:00
Rob Shearman
dfce00677d
ws2_32: Add a FIXME for WS_SIO_GET_EXTENSION_FUNCTION_POINTER in WSAIoctl.
2008-02-05 12:19:37 +01:00
Francois Gouget
44b52b128c
Assorted spelling fixes.
2008-01-16 12:48:29 +01:00
Austin English
79c0bc28ff
More spelling fixes.
2008-01-04 12:55:45 +01:00
Alexander Dorofeyev
d5a09fdda7
ws2_32: Fix timeout check.
2007-12-26 14:03:41 +01:00
Johannes Stezenbach
ca4d35fe48
ws2_32: Set *res = NULL for error return from WS_getaddrinfo().
2007-12-23 14:17:12 +01:00
Kirill K. Smirnov
01380b0554
ws2_32: Fix flags conversion in getnameinfo() function.
2007-12-18 14:23:23 +01:00
Andrey Turkin
7a9210fa85
server: Pass Information field from async I/O APCs.
2007-11-15 14:24:50 +01:00
Andrey Turkin
27cb7c7274
ws2_32: Make certain winsock functions generate i/o completion messages.
2007-11-15 14:23:23 +01:00
Andrey Turkin
c702a91a3c
server: Allow async i/o operations to send completion messages.
2007-11-15 14:20:29 +01:00
Kai Blin
d35c13c621
ws2_32: Cope with buggy apps passing setsockopt optval as a value instead of a pointer.
2007-11-12 13:03:57 +01:00
Kai Blin
58b030c270
ws2_32: Map SO_REUSEADDR.
...
BSD socket SO_REUSEADDR is not a complete match, but features like
"allow binding to a port immediately after closing it" seem to be compatible.
2007-11-05 13:24:37 +01:00
Juan Lang
17248108d4
ws2_32: Fix broadcast address calculation.
2007-10-15 12:10:32 +02:00
Damjan Jovanovic
5591c969a6
ws2_32: Silently ignore WS_IP_DONTFRAGMENT.
2007-10-04 12:03:41 +02:00
Philip Nilsson
1399a6eaf8
ws2_32: Set IPV6_V6ONLY when required to be compatible with Windows.
2007-09-25 13:51:40 +02:00
Aric Stewart
d35857dfbf
ws2_32: Initialize the address to 0 in ws_sockaddr_ws2u.
2007-07-25 13:00:41 +02:00
Damjan Jovanovic
827644ad71
ws2_32: Sending 0 bytes shouldn't cause an infinite loop.
2007-07-24 11:50:08 +02:00
Damjan Jovanovic
15428534d8
ws2_32: Update WSASendTo's iovec properly.
2007-07-16 13:38:19 +02:00
Ben Hodgetts
f438e524e7
ws2_32: Don't tell users to run Wine as root when sockets not creatable.
2007-07-03 12:29:13 +02:00
Kai Blin
fd133237b0
ws2_32: Handle IPv6 in WSAStringToAddress.
2007-07-02 13:35:41 +02:00
Kai Blin
d89f2b4810
ws2_32: Return WSAEINVAL for unhandled address families in WSAStringToAddress.
...
Prepare for IPv6 support.
2007-06-29 13:47:30 +02:00
Alexandre Julliard
0bd2b548da
ws2_32: Don't print traces from async I/O callbacks.
2007-06-29 13:40:48 +02:00
Damjan Jovanovic
1cf9436efe
ws2_32: getsockname should fail on unbound socket.
2007-06-15 12:40:20 +02:00
Kai Blin
f500591f38
ws2_32: Add mapping for STATUS_OBJECT_TYPE_MISMATCH to WSAENOTSOCK.
2007-06-06 12:10:01 +02:00
Alexandre Julliard
597dac7890
ws2_32: Rewrite WSAGetOverlappedResult for the new async I/O behavior.
2007-06-04 23:03:20 +02:00
Alexandre Julliard
7c6bc78b90
ntdll: Get rid of the num_async_io counter in the TEB.
2007-06-04 18:17:16 +02:00
Alexandre Julliard
e32252efae
ws2_32: Queue a proper user APC also on immediate success in WSARecvFrom/WSASendTo.
2007-06-04 17:44:24 +02:00
Alexandre Julliard
8992f89f27
server: Remove the extra apc_arg parameter now that user APCs all require the same arg as the kernel APC.
2007-06-04 15:20:49 +02:00
Francois Gouget
cfbd3384e2
ws2_32: Improve the prototypes Win64 compatibility by replacing long with LONG.
2007-06-04 12:49:22 +02:00
Alexandre Julliard
f2febca8f6
ws2_32: Simplify the async shutdown handling, and remove a bunch of no longer used code.
2007-06-03 11:58:30 +02:00