summaryrefslogtreecommitdiffstats
path: root/win/tclWinSock.c
Commit message (Collapse)AuthorAgeFilesLines
* [Bug 3388350] mingw64 compiler warningsjan.nijtmans2011-08-091-1/+3
|\
* | More generation of error codes (most platform-specific parts not already usingdkf2011-04-061-50/+40
| | | | | | Tcl_PosixError).
* | Adjust ckalloc/ckfree macros to greatly reduce number of explicit casts indkf2011-03-121-8/+6
| | | | | | rest of Tcl source code. No ABI change. API change *should* be harmless.
* | Now that we're no longer using SCM based on RCS, the RCS Keyword linesdgp2011-03-021-2/+0
|\ \ | |/ | | cause more harm than good. Purged them (except in zlib files).
| * Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-021-2/+0
| |\ | | | | | | more harm than good. Purged them.
| | * Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-011-2/+0
| | | | | | | | | more harm than good. Purged them.
| | * * tclWinsock.c: [Bug 3056775]: Fixed race condition between threadandreas_kupries2010-09-241-1/+47
| | | | | | | | | | | | | | | | | | and internal co-thread access of a socket's structure because of the thread not using the socketListLock in TcpAccept(). Added documentation on how the module works to the top.
| | * Backport fix for [Bug 1028264]: WSACleanup() too early. The fix introduces ↵ferrieux2009-04-271-2/+2
| | | | | | | | | | | | "late exit handlers" for similar late process-wide cleanups.
| | * Backport fix for [Bug 2446662]: resync Win behavior on RST with that of unix ↵ferrieux2009-04-271-2/+14
| | | | | | | | | | | | (EOF).
| | * * win/tclWinSock.c (Tcl_GetHostName): update to previous fix tohobbs2007-11-291-40/+16
| | | | | | | | | | | | set hostname length appropriately, clean up check overall.
| | * * win/tclWinSock.c: Add missing encoding conversion of thedgp2007-11-271-5/+16
| | | | | | | | | | | | | | | | | | [info hostname] value from the system encoding to Tcl's internal encoding. This is important now that ICANN no longer limits host names to ASCII. [Bug 1823552]
| | * * win/makefile.vc: Updated MSVC build to properly deal withpatthoyts2006-09-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | * win/nmakehlp.c: MSVC8 and AMD64 target. Backport from 8.5 * win/rules.vc: * generic/tcl.h: Fixed stat definition for MSVC8 AMD64. * win/tclWinSock.c: Casting type police. * win/tclWinTime.c:
| | * Finalization of the sockets is now solely done invasiljevic2006-03-101-62/+72
| | | | | | | | | | | | | | | | | | | | | TclpFinalizeSockets() and not over the thread-exit handler, because the order of actions the Tcl generic core will impose may result in cores/hangs if the thread exit handler tears down socket subsystem too early (See Tcl Bug #1437595).
| | * Apply [Patch 1353853] to prevent UMR randomness.dkf2005-11-281-2/+2
| | |
| | * TIP#218 IMPLEMENTATIONandreas_kupries2005-01-271-22/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclDecls.h: Regenerated from tcl.decls. * generic/tclStubInit.c: * doc/CrtChannel.3: Documentation of extended API, * generic/tcl.decls: extended testsuite, and * generic/tcl.h: implementation. Removal of old * generic/tclIO.c: driver-specific TclpCut/Splice * generic/tclInt.h: functions. Replaced with generic * tests/io.test: thread-action calls through the * unix/tclUnixChan.c: new hooks. Update of all builtin * unix/tclUnixPipe.c: channel drivers to version 4. * unix/tclUnixSock.c: Windows drivers extended to * win/tclWinChan.c: manage thread state in a thread * win/tclWinConsole.c: action handler. * win/tclWinPipe.c: * win/tclWinSerial.c: * win/tclWinSock.c: * mac/tclMacChan.c:
| | * * win/tclWinSock.c:davygrvy2004-05-061-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (SocketThreadExitHandler): Don't call TerminateThread when WaitForSingleObject returns a timeout. Tcl_Finalize called from DllMain will pause all threads. Trust that the thread will get the close notice at a later time if it does ever wake up before being cleaned up by the system anyway. (SocketEventProc) : connect errors should fire both the readable and writable handlers because this is how it works on UNIX [Bug 794839]
| | * * win/tclWinSock.c (TcpWatchProc): Watch for FD_CLOSE too whenandreas_kupries2003-10-231-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | asked for writable events by the generic layer. (SocketEventProc): Generate a writable event too when a close is detected. Together the changes fix [Bug 599468].
| * | * tclWinsock.c: [Bug 3056775]: Fixed race condition between threadandreas_kupries2010-09-241-1/+47
| | | | | | | | | | | | | | | | | | and internal co-thread access of a socket's structure because of the thread not using the socketListLock in TcpAccept(). Added documentation on how the module works to the top.
| * | Various CYGWIN-related fixesnijtmans2010-01-311-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | backported from HEAD. Still configure script not modified, so CYGWIN build is still disabled. Reason: although the build succeeds with those changes, many tests still fail.
| * | Backport fix for [Bug 1028264]: WSACleanup() too early. The fix introduces ↵ferrieux2009-04-271-2/+2
| | | | | | | | | | | | "late exit handlers" for similar late process-wide cleanups.
| * | Backport fix for [Bug 2446662]: resync Win behavior on RST with that of unix ↵ferrieux2009-04-271-2/+14
| | | | | | | | | | | | (EOF).
* | | Fix various gcc-4.5.2 64-bit warning messages,nijtmans2011-01-251-31/+31
| | | | | | | | | | | | e.g. by using full 64-bits for socket fd's
* | | * win/tclWinSock.c (CreateSocket): Swap the loops overrmax2010-12-141-5/+5
| | | | | | | | | | | | | | | | | | | | | * unix/tclUnixSock.c (CreateClientSocket): local and remote addresses, so that the system's address preference for the remote side decides which family gets tried first. Cleanup and clarify some of the comments.
* | | Change first parameter of TclSockMinimumBuffers to ClientData, and ↵nijtmans2010-12-101-10/+10
| | | | | | | | | | | | TclWin(Get|Set)SockOpt to SOCKET, because on Win64 those are 64-bit, which does not fit.
* | | * unix/tclUnixSock.c (TcpGetOptionProc): Prevent crash if interp isdkf2010-10-261-2/+3
| | | | | | | | | | | | * win/tclWinSock.c (TcpGetOptionProc): NULL (a legal situation).
* | | Add support for ::tcl::unsupported::noReverseDNSrmax2010-10-261-4/+9
| | |
* | | Eliminate many tclWinProcs-> indirect calls, which are no longer needed.nijtmans2010-10-121-3/+3
| | | | | | | | | | | | Fix some MSVC 6.0 warnings
* | | * doc/socket.n: Document the changes to the [socket] and rmax2010-09-281-171/+317
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [fconfiguyre] commands. * generic/tclInt.h: Introduce TclCreateSocketAddress() as a * generic/tclIOSock.c: replacement for the platform-dependent * unix/tclUnixSock.c: TclpCreateSocketAddress() functions. * unix/tclUnixChan.c: Extend the [socket] and [fconfigure] * unix/tclUnixPort.h: commands to behave as proposed in * win/tclWinSock.c: TIP #162. * win/tclWinPort.h: * compat/fake-rfc2553.c: A compat implementation of the APIs * compat/fake-rfc2553.h: defined in RFC-2553 (getaddrinfo() and friends) on top of the existing gethostbyname() etc. * unix/configure.in: Test whether the fake-implementation is * unix/tcl.m4: needed. * unix/Makefile.in: Add a compile target for fake-rfc2553. * win/configure.in: Allow cross-compilation by default * tests/socket.test: Improve the test suite to make more use of * tests/remote.tcl: randomized ports to reduce interference with tests running in parallel or other services on the machine.
* | | * tclWinsock.c: [Bug 3056775]: Fixed race condition between threadandreas_kupries2010-09-241-1/+47
| | | | | | | | | | | | | | | | | | and internal co-thread access of a socket's structure because of the thread not using the socketListLock in TcpAccept(). Added documentation on how the module works to the top.
* | | Various clean-ups, converting from tclWinProc->xxxProc directly to Xxxnijtmans2010-09-131-3/+3
| | | | | | | | | | | | (no change in functionality)
* | | [Freq 2965056]: Windows build with -DUNICODEnijtmans2010-08-301-2/+2
| | |
* | | Unnecessary type casts, See Tcl [Patch #2997087]nijtmans2010-05-111-7/+7
| | | | | | | | | | | | Don't duplicate CYGWIN timezone #define from tclPort.h in tclWinPort.h
* | | TCHAR-related fixes, making those files compile fine when TCHAR != charnijtmans2010-05-041-5/+6
| | | | | | | | | | | | Please see comments in [Freq 2965056] (2965056-1.patch).
* | | test that tclOO stubs are present in stub librarynijtmans2010-03-071-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | Applied missing part of [Patch 2961556] Change all tclWinProcs signatures to use TCHAR* in stead of WCHAR*. This is meant as preparation to make [Enh 2965056] possible at all.
* | | Eliminate all internal Tcl_WinUtfToTCharnijtmans2010-02-151-2/+2
| | | | | | | | | | | | | | | and Tcl_WinTCharToUtf calls, needed for mslu support.
* | | * win/tclWinDde.c: VC++ 6.0 doesn't havenijtmans2010-01-101-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * win/tclWinReg.c PDWORD_PTR * win/tclWinThrd.c: Fix various minor gcc warnings. * win/tclWinTime.c * win/tclWinConsole.c Put channel type definitions * win/tclWinChan.c in static const memory * win/tclWinPipe.c * win/tclWinSerial.c * win/tclWinSock.c * generic/tclIOGT.c * generic/tclIORChan.c * generic/tclIORTrans.c * unix/tclUnixChan.c * unix/tclUnixPipe.c * unix/tclUnixSock.c * unix/configure (regenerated with autoconf 2.59) * tests/info.test: Make test independant from tcltest implementation.
* | | Various CYGWIN-related fixes. In the win32 configure script, CYGWIN is still ↵nijtmans2009-12-211-3/+3
| | | | | | | | | | | | not enabled yet, but at least it is a step in the right direction.
* | | Fix [Bug 1028264]: WSACleanup() too early. The fix introduces "late exit ↵ferrieux2009-01-271-2/+2
| | | | | | | | | | | | handlers" for similar late process-wide cleanups.
* | | Fix [Bug 2446662]: resync Win behavior on RST with that of unix (EOF).ferrieux2009-01-261-2/+14
| | |
* | | TIP #332 IMPLEMENTATION - Half-Close for Bidirectional Channelsferrieux2008-12-181-2/+55
| | |
* | | Style improvements - invoking callbacks without visual junk.dkf2008-10-261-4/+4
|/ /
* | Add a linker hint for msvc to include ws2_32.libpatthoyts2008-02-221-1/+5
| |
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| |
* | * win/configure, win/tcl.m4: add ws2_32.lib / -lws2_32 to build.hobbs2007-11-301-281/+80
| | | | | | | | | | * win/tclWinSock.c: remove dyn loading of winsock, assume that it is always available now.
* | * generic/tclWinSock.c (InitializeHostName): Correct error indgp2007-11-291-3/+3
| | | | | | | | | | | | buffer length tracking. After gethostname() writes into a buffer, convert only the written string to internal encoding, not the whole buffer.
* | * win/tclWinSock.c: Add mising encoding conversion of the [infodgp2007-11-271-5/+10
| | | | | | | | hostname] value from the system encoding to Tcl's internal encoding.
* | various "const" additions, in line with TIP #27nijtmans2007-02-201-14/+14
| |
* | Minor updates (convert comment-outs to #ifdef outs, clean up comments/indents)dkf2007-01-021-106/+120
| |
* | * win/tclWinSock.c: Correct un-initialized Tcl_DString. Thanksdgp2006-07-241-15/+17
| | | | | | | | to afredd. [Bug 1518166]
* | * win/tclWinInit.c: More careful calls to Tcl_DStringSetLength()dgp2006-04-051-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | * win/tclWinSock.c: to avoid creating invalid DString states. * win/tclWinDde.c: Bump to version 1.3.2. [RFE 1366195] * library/dde/pkgIndex.tcl: * library/reg/pkgIndex.tcl: Bump to registry 1.1.6 * win/tclWinReg.c: * win/configure.in: Bump package version numbers. * win/configure: autoconf 2.59