Commit Graph

176 Commits

Author SHA1 Message Date
Francois Gouget 126e6b8175 Rename the regular WS_FD_XXX macros to FD_XXX.
Rename the Wine specific WS_FD_XXX macros to FD_WINE_XXX.
2001-08-24 19:14:56 +00:00
Daniel Walker c86517fcb6 - Fix for nonblocking sockets using WSAEventSelect() (patch from Ove
Kaaven).
- Changed WSAEnumNetworkEvents() so it only returns events that the
  application is looking for.
- Changed sock_poll_event() to interpret a POLLIN event with zero
  bytes waiting to be read as a POLLHUP.
2001-08-23 23:25:33 +00:00
Alexandre Julliard 301df6b5cd Added names to standard critical sections (suggested by Andreas
Mohr).
2001-08-16 18:12:56 +00:00
Alexandre Julliard e994d5036e Added Interlocked*Pointer functions.
Fixed InterlockedCompareExchange prototype.
2001-08-09 21:21:13 +00:00
Alexandre Julliard 1922c72b8a Removed unnecessary inclusion of heap.h. 2001-07-25 00:43:29 +00:00
Alexandre Julliard 37e9503ae8 Moved server.h to include/wine. 2001-07-19 00:39:09 +00:00
Patrik Stridvall e9782fa1fc Documentation fixes. 2001-07-12 22:33:51 +00:00
Patrik Stridvall 044855c6ec Documentation fixes. 2001-07-11 18:56:41 +00:00
Peter Hunnisett 7736876afd Implemented a stub for WSARecvFrom. 2001-07-10 19:09:59 +00:00
Patrik Stridvall 01d5e5b071 Documentation fixes. 2001-07-02 19:59:40 +00:00
Patrik Stridvall 3ca9823941 Documentation ordinal fixes. 2001-06-20 23:03:14 +00:00
Patrik Stridvall 8b216b3d02 Documentation ordinal fixes. 2001-06-19 18:20:47 +00:00
Francois Gouget 9a8a106f2b Fixed incorrect cast in WSOCK32_send and WSOCK32_recvfrom. 2001-05-07 18:14:35 +00:00
Peter Hunnisett de962afa56 Added stub for WSASend. 2001-04-10 21:22:34 +00:00
Alexandre Julliard 67a749999a New set of macros for server calls; makes requests without variable
part somewhat faster.
2001-02-27 02:09:16 +00:00
Alexandre Julliard 641c7ae109 Got rid of the WSINFO structure. Fixed a couple of bugs. 2001-02-20 01:57:13 +00:00
Andreas Mohr dacdb9c4c6 Cosmetics. 2001-02-14 00:29:16 +00:00
James Hatheway 4bed8266e0 In WsControl, don't mix Linux and Wine socket calls. Always use Wine calls.
Added hack for missing WINAPI in Unix socket() definition.
2001-01-17 20:19:14 +00:00
Gerard Patel 4756b088c1 Change WSACleanup - wsinfo is a static structure now. 2001-01-17 01:47:47 +00:00
Alexandre Julliard 7d5bc5c3f9 Removed some direct accesses to the 16-bit task structure. 2001-01-15 20:09:09 +00:00
Alexandre Julliard 8081e5a1e5 Added handle_t type to server interface so that we can make handles
pointers later on.
Always use 0 to signal invalid handle in server requests.
2001-01-05 04:08:07 +00:00
Marcus Meissner 23e271488c A socket becomes readable after connect in Linux 2.4 (even for
connection refused).
2001-01-02 20:35:41 +00:00
Alexandre Julliard 982a223f36 Replaced PTR_SEG_TO_LIN macro by exported MapSL function.
Fixed a few ptr/segptr mismatches.
Moved CONV_RECT/POINT macros to wingdi16.h.
2000-12-13 20:20:09 +00:00
Patrik Stridvall 2b3aa616e8 Added/modified documentation for function arguments. 2000-12-01 23:58:28 +00:00
Alexandre Julliard 3a0f8b7953 Finished separation of shell32 and wsock32. 2000-12-01 20:48:41 +00:00
David Elliott ea186796eb Remove libXXXX.so.1.0 lines from .cvsignore files. 2000-11-30 19:57:34 +00:00
Alexandre Julliard 62469b21b6 Fixed SEGPTR_GET usage. 2000-11-27 22:02:08 +00:00
Marcus Meissner 3c379ddc6b Ignore SOL_SOCKET/SO_DEBUG setsockopt() calls. 2000-11-26 22:36:38 +00:00
Hidenori Takeshima 5d1a6385e1 Added checking for netdb.h.
Don't include arpa/inet.h and sys/socket.h if system doesn't have these headers.
2000-11-26 04:00:53 +00:00
Dimitrie O. Paun 0b7a7bbc06 Include config.h in files that test for constants defined in it. 2000-11-25 01:31:17 +00:00
Alexandre Julliard eb58e1d597 Declare debug channels in all dlls that need them; added imports of
ntdll where necessary.
2000-11-05 04:53:07 +00:00
Alexandre Julliard 1a3f705fc1 Added import of ntdll. 2000-10-31 00:22:41 +00:00
Aric Stewart 4162315eac Added forward for WSAResetEvent. 2000-10-24 21:25:49 +00:00
Rein Klazes 9dd32508f6 Convert the value of level when setsockopt is called with
WS_SO_DONTLINGER.
2000-10-24 21:25:21 +00:00
Rein Klazes 81f7771972 Ignore setsockopt calls that make the size of the receive buffer too
small.
2000-10-13 17:05:35 +00:00
Alexandre Julliard 86f4531676 Added a few missing imports. 2000-09-27 22:32:44 +00:00
Alexandre Julliard 83f52d11c1 Moved all Win16 definitions out of the standard Windows headers. 2000-09-26 22:20:14 +00:00
Rein Klazes ff7a61f8d3 Make calls to gethostbyname, gethostbyaddr, getservbyname,
getservbyport, getprotobyname and getprotobynumber thread-safe.
2000-09-24 19:41:57 +00:00
John Gilmore 5180d5635d Cleaned it up so that code paths which have unsupported WS_SO values
never actually pass them to Unix system calls.
2000-09-16 20:51:40 +00:00
Stephane Lussier ec6f37bf3e When checking the socket return by the server request, we should do a
"signed" check.
2000-09-01 01:21:42 +00:00
Alexandre Julliard 92643003cf Converted a lot of server requests to the new exception handling
mechanism.
2000-08-31 01:59:51 +00:00
Alexandre Julliard 5ab9d860f2 Removed some unnecessary #includes and dll dependencies. 2000-08-09 22:35:05 +00:00
Alexandre Julliard e514103971 Added imports of kernel32.dll where necessary. 2000-08-06 03:47:29 +00:00
Andreas Mohr ae50941ae5 Fixed the Win16/Win32 structure size/alignment differences of
ws_hostent, ws_protoent, ws_servent, ws_netent.
2000-08-03 22:19:09 +00:00
Alexandre Julliard 6c9d83aa4c Added imports of user32/gdi32/kernel32 wherever necessary. 2000-08-03 00:04:24 +00:00
Uwe Bonnes 6e5f3c759f We always have strerror, so no need to ifdef HAVE_STRERROR. 2000-07-29 11:32:07 +00:00
Alexandre Julliard 76d3671bee Added 'owner' field to 16-bit spec files to specify the name of the
32-bit dll that contains it.
2000-07-28 00:07:18 +00:00
James Hatheway bf3e2e9fb0 Portability fixes. 2000-07-25 17:45:50 +00:00
James Hatheway c9d258274d Adds an initial WSAIoctl function with support for only the
SIO_GET_INTERFACE_LIST command.  Adds initial code to WsControl
function to support the WSCNTL_TCPIP_QUERY_INFO command.
2000-07-23 19:28:24 +00:00
Eric Pouech 37f5c11118 Insured that all parameters of async functions are copied before
returnig from request.
2000-07-23 14:17:51 +00:00
Andreas Mohr 3c4e031dd9 Added WSAWaitForMultipleEvents (alias to WaitForMultipleObjectsEx). 2000-07-15 15:12:18 +00:00
Gerard Patel 0b42d3ce5b Fakes a negotiation of the winsock version. 2000-07-10 10:57:46 +00:00
Alexandre Julliard c607532ae4 Created separate libraries for dplay, shfolder, shlwapi, wow32 and
wsock32 so that we have at most one Win32 dll in each .so library.
2000-07-09 11:19:35 +00:00
Patrik Stridvall b167d4b21c Fixed some issues found by winapi_check. 2000-06-23 15:47:36 +00:00
Alexandre Julliard 6953d6756c For dlls, derive SPEC_SRCS from MODULE and ALTNAMES. 2000-06-20 20:24:14 +00:00
James Hatheway 829405af93 Created an initial Winsock 2 (ws2_32) DLL. Makes use of the Winsock 1
functions already implemented.
2000-06-18 17:23:17 +00:00
Gerald Pfeifer 0a09482460 Fixed warning. 2000-06-01 22:46:20 +00:00
Gerald Pfeifer 410617fe52 Fix a mismatch between format string and parameter. 2000-05-23 23:32:42 +00:00
Rein Klazes e9b2f3c0f4 Convert service and protocol names to lowercase before calling
getservby{name|port} and getprotoby{name|port}.
2000-04-18 11:54:59 +00:00
Rein Klazes ce77ea90b5 Corrected error handling for ws_getprotobyname/number.
Made the Async error returns the same as the normal functions.
2000-04-06 19:31:38 +00:00
Patrik Stridvall 2d6457c11a Added/fixed some documentation reported by winapi_check. 2000-03-28 20:22:59 +00:00
Alexandre Julliard e0842daf60 Fixed small bug in WSOCK32_accept 2000-03-28 13:19:21 +00:00
Ove Kaaven cb98a6ed7a Handle POLLHUP better (delay FD_CLOSE notification until all data has
been read). Made WSAEnumNetworkEvents atomic. Convert socket event
error codes properly. Made accept()-ed sockets inherit the listening
socket's WSAAsyncSelect().
2000-03-26 18:21:16 +00:00
Patrik Stridvall fcfacb95a7 Added/fixed some documentation reported by winapi_check. 2000-03-24 20:46:04 +00:00
Lars Heete e63fdf10f2 Corrected handling of proto==NULL in WINSOCK_getservbyname and
WINSOCK_getservbyport.
2000-03-19 12:40:53 +00:00
Rein Klazes 7be99b015c Correct conversion of level parameter if WINSOCK_setsockopt is called
for option WS_SO_DONTLINGER.
2000-03-12 21:12:56 +00:00
Patrik Stridvall 6cc47d4924 Removed a lot of unnecessary includes and fixed the compile errors. 2000-03-08 18:26:56 +00:00
Rein Klazes 5d3f7a6885 Add a message and fix error code if __ws_getservbyname() and
__ws_getservbyport() cannot find the requested service.
Fix WINSOCK_setsockopt() when called with optval pointing to 16 bit int.
2000-03-07 12:23:51 +00:00
Alexandre Julliard 82a2b186e7 Added support for creating extra symlinks for .so files that contain
multiple dlls.
2000-03-05 13:08:24 +00:00
Alexandre Julliard d0edc5fecd Moved dll-specific make rules to a separate Makedll.rules file. 2000-03-04 22:31:27 +00:00
Ove Kaaven 4ff3b20508 WSACleanup should set last error to WSANOTINITIALISED if failing
because Winsock was not initialized...
2000-03-04 19:29:42 +00:00
Rein Klazes 20c68be907 Made WINSOCK_setsockopt handle option SO_DONTLINGER correctly. 2000-03-04 19:09:16 +00:00
Ove Kaaven d0c3e19e8a ioctlsocket() now returns success if the app sets nonblocking mode for
WSAAsyncSelect()-ed sockets.
2000-02-14 19:50:57 +00:00
Alexandre Julliard 318f4cefd2 Build most dlls as separate shared libraries. 2000-01-31 05:02:49 +00:00
Alexandre Julliard cb1fc735f0 Changed the server to return STATUS_* error codes. 2000-01-24 21:58:06 +00:00
Alexandre Julliard de07869657 Moved winsock implementation to dlls/winsock. 2000-01-23 22:07:15 +00:00