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).
| * | | | | | | | | 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
| | | | | | | | | |
* | | | | | | | | | Set all variables written by the notifier thread as volatile.oehhar2014-04-021-4/+6
| | | | | | | | | |
* | | | | | | | | | Be shure tsd pointer to the info structure is invalidated before memory freeoehhar2014-03-231-7/+28
| | | | | | | | | |
* | | | | | | | | | Bug [336441ed59]: Buffer infoPtr between socket creation and insertion into ↵oehhar2014-03-221-73/+140
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | info structure in thread local memory. Backported fix from commit [65b320b464] from branch "bug-[13d3af3ad5]".
* | | | | | | | | | 3574493 Avoid hanging on exit due to use of synchronization calls indgp2012-11-071-8/+7
|\ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|_|_|/ |/| | | | | | | | | routines called by DllMain().
| * | | | | | | | | 3574493 Avoid hanging on exit due to use of synchronization calls indgp2012-11-071-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | routines called by DllMain().
* | | | | | | | | | Remove wrapper macro for ntohs(): unnecessary, because it doesn't require an ↵jan.nijtmans2012-08-201-20/+2
| |_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | initialized winsock_2 library
* | | | | | | | | * win/tclWinSock.c (InitializeHostName): Corrected logic thatdkf2012-07-101-10/+6
| |_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | extracted the name of the computer from the gethostname call so that it would use the name on success, not failure. Also ensured that the buffer size is exactly that recommended by Microsoft.
* | | | | | | | and don't forget the %jan.nijtmans2012-07-081-4/+4
| | | | | | | |
* | | | | | | | add TCL_I_MODIFIER and use it in the correct placesjan.nijtmans2012-07-081-4/+4
| |_|_|_|_|_|/ |/| | | | | |
* | | | | | | Revert most of [fcc5957e59], since when we let cygwin share the win32 stub ↵jan.nijtmans2012-05-221-6/+22
|\ \ \ \ \ \ \ | |/ / / / / / | | | | | | / | |_|_|_|_|/ |/| | | | | | | | | | | table this is no longer necessary implement TclpInetNtoa for win32 Let cygwin share stub table with win32
| * | | | | Revert most of [ae92de6078], since when we let cygwin share the win32 stub ↵jan.nijtmans2012-05-221-6/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | table this is no longer necessary implement TclpInetNtoa for win32 Let cygwin share stub table with win32
* | | | | | [Bug 510001]: TclSockMinimumBuffers needs plat impjan.nijtmans2012-04-041-13/+5
|\ \ \ \ \ \ | |/ / / / / | | | | | / | |_|_|_|/ |/| | | |
| * | | | [Bug 510001]: TclSockMinimumBuffers needs plat impjan.nijtmans2012-04-041-3/+3
| |\ \ \ \
| | * | | | better solution for bug-510001bug_510001jan.nijtmans2012-03-291-2/+2
| |/ / / / | | | | | | | | | | it fills a correctly working stub entry for Win64
* | | | | [Bug 3508771] load tclreg.dll in cygwin tclshjan.nijtmans2012-03-301-4/+4
|\ \ \ \ \ | |/ / / / | | | | / | |_|_|/ |/| | | Implement TclWinGetTclInstance, TclpGetTZName, and various others for Cygwin
* | | | [Bug 3388350] mingw64 compiler warningsjan.nijtmans2011-08-161-1/+1
|\ \ \ \ | |/ / /
* | | | [Bug 3388350] mingw64 compiler warningsjan.nijtmans2011-08-151-1/+3
|\ \ \ \ | |/ / / | | | / | |_|/ |/| |
| * | [Bug 3388350] mingw64 compiler warningsjan.nijtmans2011-08-151-3/+2
| | |
* | | 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: