summaryrefslogtreecommitdiffstats
path: root/win/tclWinSock.c
Commit message (Collapse)AuthorAgeFilesLines
* [Bug: 3545363]: Use a large enough buffer for accept()ing IPv6max2012-07-191-4/+7
| | | | connections. Fix conversion of host and port for passing to the accept proc to be independent of the IP version.
* merge 8.5dgp2012-07-101-7/+3
|\
| * * 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.
* | MSVC 6.0 does not have the %I modifierjan.nijtmans2012-07-081-4/+4
|\ \ | |/
| * 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
| |
* | Factor out a number of common patterns of use of Tcl_DStringAppend.dkf2012-07-031-4/+4
| |
* | Rework the error message generation of [socket], so that the errormax2012-06-221-2/+7
| | | | | | code of getaddrinfo is used instead of errno unless it is EAI_SYSTEM.
* | Revert most of [3caedf05df], since when we let cygwin share the win32 stub ↵jan.nijtmans2012-05-241-3/+20
|\ \ | |/ | | | | | | | | table this is no longer necessary implement TclpInetNtoa for win32 Let cygwin share stub table with win32
| * 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
* | | fix windows build broken by [92cfbef048]jan.nijtmans2012-04-111-1/+1
| | | | | | | | | (Refactor Win socket and load code to be less baroque in its internals)
* | | Reduce amount of unreachable code. Refactor Win socket and load code to be lessdkf2012-04-051-221/+178
| | | | | | | | | baroque in its internals.
* | | [Bug 510001]: TclSockMinimumBuffers needs plat impjan.nijtmans2012-04-041-14/+6
|\ \ \ | |/ /
| * | [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-04-021-21/+21
|\ \ \ | |/ / | | | | | | Implement TclWinGetTclInstance, TclpGetTZName, and various others for Cygwin
| * | [Bug 3508771] load tclreg.dll in cygwin tclshjan.nijtmans2012-03-301-4/+4
| |\ \ | | |/ | | | | | | Implement TclWinGetTclInstance, TclpGetTZName, and various others for Cygwin
* | | Revert some cygwin-related signature changes from [835f8e1e9d] (2010-01-22).jan.nijtmans2012-03-231-3/+3
|\ \ \ | |/ / | | | | | | | | | | | | | | | They were an attempt to make the cygwin port compile again, but since cygwin is based on unix this serves no purpose any more. Use EAGAIN in stead of EWOULDBLOCK, because in VS10+ the value of EWOULDBLOCK is no longer the same as EAGAIN Add tclWinError.c to the CYGWIN build.
| * | [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
| | |
* | | [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