Jakob Eriksson
7670aa128b
More trace info.
2005-03-17 13:58:06 +00:00
Thomas Kho
e95de008e3
Added select_server() test that uses select() in serving clients.
2005-03-11 12:53:12 +00:00
Steven Edwards
5727918424
Added a check for poll.h.
2005-03-04 12:38:36 +00:00
Francois Gouget
737da5864a
Tests cannot use wine/debug.h because it does not exist on Windows.
2005-02-14 11:02:23 +00:00
Eric Pouech
4634447d6b
- got rid of include/async.h
...
- fixed some overlapped issues in socket handling
- moved kernel32.CancelIo implementation to ntdll
2005-01-14 19:54:38 +00:00
Hans Leidekker
8be26da723
Stub implementations for WPUCompleteOverlappedRequest,
...
WSADuplicateSocketW, WSAEnumNameSpaceProviders{A,W}, WSAGetQOSByName,
WSAGetServiceClassInfo{A,W}, WSAGetServiceClassNameByClassId{A,W},
WSALookupServiceEnd, WSALookupServiceNext{A,W},
WSAProviderConfigChange, WSASetService{A,W}, WSCEnableNSProvider,
WSCGetProviderPath, WSCInstallNameSpace, WSCWriteProviderOrder.
Implementations for WSANtohl, WSANtohs, WSASocketA->W crosscall.
Avoid NULL dereferences in WSAStringToAddress{A,W} and
WSAAddressToString{A,W}.
2005-01-10 14:34:15 +00:00
Mike McCormack
4a0f999859
Use CreateEventW in preference to CreateEventA for unnamed events.
2005-01-07 15:40:09 +00:00
Michael Stefaniuc
5ad7d858e0
Do not check for non NULL pointer before HeapFree'ing it. It's
...
redundant.
2004-12-23 17:06:43 +00:00
Robert Shearman
c7d80ccf52
Convert per-process hostent, servent and protent buffers into
...
per-thread buffers.
2004-12-22 18:23:49 +00:00
Francois Gouget
6fb1a20020
Assorted spelling fixes.
2004-12-20 19:27:06 +00:00
Alexandre Julliard
1d38462e52
Fixed a leak in getsockname.
...
Replaced malloc by HeapAlloc.
2004-12-06 16:52:36 +00:00
Tom Wickline
5c38e1b561
Version resources cleanup.
2004-11-23 13:59:34 +00:00
Gerald Pfeifer
6d653ab02a
Fix format string in WSAAddressToStringA().
2004-11-06 03:47:01 +00:00
Hans Leidekker
19def5f7af
Implement WSAAddressToString{A,W}.
...
Add tests for WSAAddressToString{A,W} and WSAStringToAddress{A,W}.
Add TRACEs to WSAStringToAddress{A,W}.
2004-11-04 21:05:48 +00:00
Stefan Dösinger
418f82b76f
Added WSAAddressToStringA/W stubs.
2004-11-02 19:25:34 +00:00
Hans Leidekker
b67b3c56af
Make sure we match output of Win2k protocol enumeration functions.
2004-11-02 19:24:46 +00:00
Hans Leidekker
bec06ad777
Fill WSAPROTOCOL_INFO structures instead of PROTOCOL_INFO structures.
...
Implement WSCEnumProtocols().
Add some tests.
2004-11-01 23:18:47 +00:00
Vincent Béron
6c644d68cf
Fix various function prototypes.
2004-10-19 23:55:15 +00:00
Rein Klazes
fd19a1f9e8
- Fix WS_getsockopt for the options SO_LINGER, SO_RCVTIMEO and
...
SO_SNDTIMEO by adding data conversion from Unix to windows.
- Added a test for this.
2004-10-06 18:52:51 +00:00
Robert Shearman
cf78e15c2b
- Fix calculation of required buffer size.
...
- Add support for detecting the IFF_MULTICAST flag.
- Stub for SIO_ADDRESS_LIST_CHANGE.
2004-10-04 20:37:43 +00:00
Rein Klazes
8ed3bbf2d2
- Time out on recv from and send to blocking sockets.
...
- Fix timeout calculation in WS_setsockopt.
2004-10-04 19:13:26 +00:00
Hans Leidekker
719a789792
Fix signed/unsigned comparison warnings.
2004-09-22 02:46:38 +00:00
Alexandre Julliard
79dcdd0af3
Authors: Roderick Colenbrander <thunderbird2k@gmx.net>, Gerald Pfeifer <gerald@pfeifer.com>
...
Make WS2_send(), WS_getsockopt(), and WS_setsockopt() IPX support work
on FreeBSD.
2004-09-14 00:48:15 +00:00
Andreas Rosenberg
5e114a8639
Implementation of WSAStringToAddress(A/W), WSAHtonl, WSAHtons.
2004-09-13 23:18:19 +00:00
Roderick Colenbrander
dba9461675
- set ipx packet type
...
- add support for retrieving some ipx info
2004-09-07 20:47:03 +00:00
Hans Leidekker
f4b0051e72
Move implementation of EnumProtocols{A,W} from wsock32 to ws2_32.
...
Forward {mswsock,wsock32}.EnumProtocols{A,W} to ws2_32.WSAEnumProtocols{A,W}.
Improve some traces.
2004-09-06 21:29:29 +00:00
Alexandre Julliard
6a27b48895
Fd type is no longer used, get rid of it.
2004-08-18 00:04:58 +00:00
Alexandre Julliard
b459952144
Avoid some non-portable makefile constructs, and get rid of the
...
ALTNAMES variable.
2004-08-11 23:59:06 +00:00
Ulrich Czekalla
842320998a
Handle EINTR when polling.
2004-08-10 23:42:36 +00:00
Hans Leidekker
dbb3e14748
Fix signed/unsigned comparison warnings.
2004-08-09 18:52:18 +00:00
Hans Leidekker
190db273de
Stub for WSCUnInstallNameSpace.
2004-06-02 21:33:17 +00:00
Rein Klazes
36f8f1b791
Stub implementation for WSALookupServiceBeginA/W.
2004-04-05 22:23:05 +00:00
Alexandre Julliard
9e4ed6460c
.spec.c files are no longer used for 32-bit dlls.
2004-03-24 03:36:44 +00:00
Alexandre Julliard
589e115233
We no longer use the .exe.spec.c files.
2004-03-02 21:16:37 +00:00
Alexandre Julliard
e8a339c1d2
Portability fixes for LSB compatibility.
2004-03-01 21:32:02 +00:00
Patrik Stridvall
774c88a24d
More stubs and better headers for mswsock.dll.
2004-02-28 01:49:37 +00:00
Christian Costa
47c13f537c
Add stub for WSAStringToAddressA.
2004-01-28 20:07:24 +00:00
Alexey Spiridonov
333ecf3b75
Fixed typo in memset call.
2004-01-27 20:12:42 +00:00
Francois Gouget
f229c911b5
Add trailing '\n's to ok() calls.
2004-01-23 02:10:33 +00:00
Alexandre Julliard
774304da90
Authors: Jeremy White <jwhite@codeweavers.com>, Francois Gouget <fgouget@codeweavers.com>
...
Test the behavior of bind() wrt. SO_REUSEADDR.
2004-01-13 05:12:46 +00:00
Jeremy Shaw
0d914dfd45
Remove forced WS_SO_REUSEADDR on all binds.
2004-01-13 05:10:59 +00:00
Wim Lewis
1694844d2b
Clear struct sockaddr_ipx directly instead of just the sipx_zero
...
field.
2004-01-02 20:12:00 +00:00
Gerald Pfeifer
15be906293
Fix types in WSAHtonl.
2003-12-12 04:09:46 +00:00
Kirill Smelkov
32f296b6d5
Added stub and prototype for WSAJoinLeaf.
2003-12-11 05:16:48 +00:00
Alexandre Julliard
04ecca54a1
Use wine_server_release_fd() instead of close() everywhere we use
...
wine_server_handle_to_fd().
A few minor winsock cleanups.
2003-12-02 04:19:56 +00:00
Juan Lang
b05861dc5f
Removed annoying message about missing entry in /etc/services.
2003-11-30 02:54:25 +00:00
Alexandre Julliard
0d7bdc7abd
Moved the 16-bit code out of socket.c and into a separate file.
2003-11-28 23:14:02 +00:00
Dmitry Timoshkov
2581db8f6a
Fixed some problems found while compiling and linking Wine under
...
Cygwin.
2003-10-14 05:27:43 +00:00
Dimitrie O. Paun
fbdfd910c1
Remove SYMBOLFILE and LDDLLFLAGS from Makefiles.
2003-10-11 01:09:15 +00:00
Daniel Marmier
ee1eb63b31
Fixed warnings with gcc option "-Wwrite-strings".
2003-10-07 03:30:47 +00:00
Daniel Marmier
a613de2a22
Use #ifdef instead of #if for all feature tests.
...
Check that _MSC_VER is defined before using it.
2003-09-30 00:33:47 +00:00
Dimitrie O. Paun
8b255842ec
Remove the obsolete pascal16 (replaced by pascal -ret16).
2003-09-26 04:32:19 +00:00
Alexandre Julliard
e37c6e18d0
Fixed header dependencies to be fully compatible with the Windows
...
headers (with help from Dimitrie O. Paun).
2003-09-05 23:08:26 +00:00
Rein Klazes
3a35544dd9
_ws_gethostbyname() and WSAAsyncGetHostByName() when called with a
...
null name, should use the name returned by gethostname().
2003-09-02 18:12:20 +00:00
Juan Lang
85abf9cb90
- improve some parameter checking in WSAIoctl
...
- fix a memory leak I introduced in WSAIoctl
2003-08-30 00:16:19 +00:00
Alexandre Julliard
7df1b9e03a
Start using the exported TEB structure from winternl.h where
...
possible.
2003-08-28 19:57:35 +00:00
Alexandre Julliard
19b6a49845
Allocate DebugInfo field for all critical sections (based on a patch
...
by Alex Pasadyn).
Get rid of the Wine-specific CRITICAL_SECTION_INIT macro.
2003-08-12 23:50:54 +00:00
Alexandre Julliard
1bec3726bb
Make do_block use poll() rather than select() (based on a patch by
...
Mike Hearn).
2003-08-08 21:10:28 +00:00
Mike McCormack
a3989b1a55
Add an empty hook function for WSASetBlockingHook to return.
2003-07-22 00:58:44 +00:00
Dmitry Timoshkov
4e1ef0c114
For all DLLs with defined DllMain and which do not require
...
DLL_THREAD_ATTACH/DLL_THREAD_DETACH notifications, call
DisableThreadLibraryCalls() in order to slightly improve performance
on thread creation/exiting.
2003-06-30 20:53:48 +00:00
Eric Pouech
9bd4f6bf15
- made async.h ready for use in ntdll: replaced all calls to kernel32
...
functions with ntdll equivalent
- replaced status setter/getter for wine async structures with direct
access to a (now included) IO_STATUS_BLOCK structure
- since we now have a IO_STATUS_BLOCK in async_private, we no longer
need in most of the user (derivated) structures a field for
LPOVERLAPPED (it's stored as the IO_STATUS_BLOCK)
- rewrote the async.h users accordingly
- implemented ntdll.Nt{Read|Write}File and let
kernel32.{Read|Write}File(Ex)? use those new ntdll functions
- rewrote smb read/write interfaces to be more ntdll stylish (no
overlapped yet)
2003-06-26 02:08:17 +00:00
Francois Gouget
9591836ffb
'sizeof type' is best avoided as it won't always compile (e.g. 'int
...
main() {return sizeof int;}'). Use 'sizeof(type)' instead.
2003-06-18 19:45:22 +00:00
Kester Maddock
cb98365c75
Check for a null pointer in WS_setsockopt.
2003-06-07 00:34:18 +00:00
Antonio Larrosa Jiménez
f6a838cad8
Added WSASetEvent forward.
2003-06-04 20:23:58 +00:00
Francois Gouget
fe0bae39e0
Added version information.
2003-05-13 22:26:09 +00:00
Juan Lang
090f5974b8
Use iphlpapi to implement SIO_GET_INTERFACE_LIST in WSAIoctl, and
...
corrects iiFlags entry in the returned interface list.
2003-05-13 04:43:44 +00:00
Vitaliy Margolen
7ea1033d50
Add and fix a few stubs to return correct error.
2003-04-09 23:33:35 +00:00
Alexandre Julliard
7b007b47ae
Cleaned up the option mapping code a bit.
2003-04-04 22:29:52 +00:00
Mike Hearn
ceb86a90f8
- Map winsock sockopts to the POSIX equivalents for IP multicast.
...
- Remap winsock1 constant values to winsock2 using a forwarder
function.
- Change a FIXME to a TRACE, it appeared to be simply reporting
progress.
2003-04-04 22:04:47 +00:00
Alexandre Julliard
9ee2413700
Handle htonl() and friends like select(), this will hopefully avoid
...
conflicts with Unix headers.
2003-04-02 01:38:42 +00:00
Alexandre Julliard
5537dbbf40
Replaced WINE_CHECK_STRUCT_MEMBER autoconf macro by the standard
...
AC_CHECK_MEMBERS. Added check for si_fd in siginfo_t.
2003-03-28 00:36:12 +00:00
Alexandre Julliard
e048adab83
List 16-bit spec files explicitly to avoid problems with some versions
...
of make.
2003-03-23 20:00:02 +00:00
Alexandre Julliard
114a31a2a8
Take advantage of new winebuild syntax to remove redundant function
...
names in spec files.
2003-03-20 03:53:12 +00:00
Paul Rupe
42a9ca5765
Treat blank protocol the same as NULL in getservbyname &
...
getservbyport.
2003-03-17 04:42:11 +00:00
Alexandre Julliard
a9c51cb60b
Replaced forwards by normal function declarations.
2003-03-17 00:17:00 +00:00
Michael Stefaniuc
745a78f490
Remove some unreachable code.
2003-02-24 20:48:45 +00:00
Gerald Pfeifer
cfda84ef53
Properly #define sipx_node for FreeBSD.
2003-01-28 01:07:09 +00:00
Martin Wilck
c422dae189
Do not clear FD_WINE_CONNECTED on shutdown(). FD_WINE_CONNECTED
...
(currently unused) can thus be used to determine if a stream socket
was ever connected.
2003-01-28 00:24:04 +00:00
Gerald Pfeifer
701ab7dd61
Improve portability wrt. struct sockaddr_ipx.
2003-01-23 21:20:36 +00:00
Francois Gouget
9b0b1e078a
Remove (POINTER)NULL casts.
2003-01-14 23:43:41 +00:00
Alexandre Julliard
dbf8b78acd
Added .spec.def files.
2002-12-12 22:04:04 +00:00
Alexandre Julliard
72e1c64345
Added list of symbols to ignore by default in winebuild.
...
Made the -i option support removing ignored symbols too.
Removed the -noimport flag in spec files.
2002-12-12 02:20:47 +00:00
Christoph Frick
983088a03b
Force (WS_)SO_REUSEADDR before binding to a socket; ignore
...
(WS_)SO_DONTROUTE; Network games in Grand Prix Legends and Nascar 2002
are possible now.
2002-12-06 23:19:21 +00:00
Martin Wilck
4577875c4e
Correct 2 bugs connected to asynchronous shutdown():
...
- Cannot call WSAGetOverlappedResult() because completion function
destroys the overlapped structure.
- ws2_async_cleanup() called twice in case of failure.
2002-12-05 19:02:55 +00:00
Martin Wilck
b5fc589f44
Set the socket to overlapped mode.
2002-12-05 19:02:20 +00:00
Martin Wilck
2a5f290ce1
Fixed test to run fine (0 errors) on Win NT.
2002-12-03 21:36:58 +00:00
Mike McCormack
947a74f40d
Add stubs and declarations for WSAInstallServiceClassA/W.
2002-11-13 19:42:23 +00:00
Patrik Stridvall
9cec0a57b0
Fixed some issues found by winapi_check.
2002-11-11 19:55:33 +00:00
Alexandre Julliard
1e1313d54c
Made the dll entry point default to DllMain and removed most of the
...
'init' spec file declarations.
2002-11-04 23:53:41 +00:00
Martin Wilck
9fc8b115c2
- Define SOCKET as UINT_PTR for Win64 (thanks to P. Stridvall).
...
- Make winsock compile without WINE_NO_STRICT.
2002-10-30 20:26:32 +00:00
Hagen Heiduck
97db7b45e4
Added WSASendDisconnect.
2002-10-29 21:27:20 +00:00
Alexandre Julliard
23bb3715f7
Added support for building certain dlls with -DSTRICT.
...
Added -DWINE_NO_STRICT flag to dlls that don't support STRICT yet.
2002-10-18 23:46:28 +00:00
Alexandre Julliard
0ca051e555
Fixed wownt32.h to make it usable from inside Wine, and use it to
...
avoid some duplication of the handle conversion macros.
2002-10-17 16:43:42 +00:00
Greg Turner
e6d8fdb081
- fixed up some semantic misunderstandings using the helpful advice of
...
Rein Klazes
- added SO_SNDTIMEO support
- added ifdef's for consistency with rest of socket.c
2002-09-26 03:21:54 +00:00
Greg Turner
96e3e928a2
Accept time_t argument in WS_setsockopt/WS_SO_RCVTIMEO; translate to
...
struct timeval for edification of setsockopt.
2002-09-25 00:15:43 +00:00
Francois Gouget
71f8fc27e5
IDI_APPLICATIONW does not exist on Windows. Use IDI_APPLICATION
...
instead and cast to LPWSTR.
Fixed type cast warnings.
2002-09-17 00:05:34 +00:00
Martin Wilck
2b54cf91fc
Fix the behavior of GetOverlappedResult() and WSAGetOverlappedResult()
...
with non-manual-reset (auto-reset) events in the OVERLAPPED structures.
2002-09-12 17:56:30 +00:00
Dimitrie O. Paun
f476a0fbdc
Make all spec files grep-able.
2002-09-12 00:52:39 +00:00
Michael Stefaniuc
e149b37f3a
Finish the conversion of HWND to a void*.
2002-09-06 20:40:42 +00:00
Martin Wilck
9dccb29447
WS2_register_async_shutdown(): Try immediate completion, in case an
...
app never waits for anything.
WS_accept(): Avoid crash if addr parameter is NULL.
2002-09-06 19:35:45 +00:00