summaryrefslogtreecommitdiffstats
path: root/win/tclWinSock.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge 8.7jan.nijtmans2019-09-201-2/+2
|\
| * Merge 8.6jan.nijtmans2019-09-201-2/+2
| |\
| | * Let's use GetWindowLongW/SetWindowLongW on Win32 directly. Missed them ↵jan.nijtmans2019-09-201-2/+2
| | | | | | | | | | | | because they are not used in Win64.
* | | Merge 8.7jan.nijtmans2019-09-191-11/+11
|\ \ \ | |/ /
| * | Merge 8.6jan.nijtmans2019-09-191-2/+2
| |\ \ | | |/
| | * Some more *A() -> *W() Win32 API changes, making Unicode calls Explicit.jan.nijtmans2019-09-191-23/+23
| | |
| * | Merge 8.6. Missing cast in Tcl_WinTCharToUtf() macro (when compiling without ↵jan.nijtmans2019-09-191-9/+9
| |\ \ | | |/ | | | | | | -DUNICODE)
| | * TCHAR -> WCHAR converions (and corresponding Win32 API call changes), since ↵jan.nijtmans2019-09-181-8/+8
| | | | | | | | | | | | we are impicitly compiling with -DUNICODE
* | | Merge 8.7jan.nijtmans2019-09-141-2/+2
|\ \ \ | |/ /
| * | Use *WChar* in stead of *Char16* functions on Windows, always. It's actually ↵jan.nijtmans2019-08-031-1/+1
| | | | | | | | | | | | the same, but more consistent.
| * | Merge 8.7. Documentation improvements and code cleanup. Approaching finish.jan.nijtmans2019-08-011-2/+1
| |\ \
| * | | Rename UTF-related functions to "WChar" and "Char16" variants, more ↵jan.nijtmans2019-07-111-1/+1
| | | | | | | | | | | | | | | | intuitive because they represent wchar_t and char16_t (since C++11) types in modern compilers.
| * | | Improvement: always export both 16-bit and 32-bit UTF functionjan.nijtmans2019-07-051-1/+1
| | | |
| * | | TIP #548: Deprecate Tcl_WinUtfToTChar() and Tcl_WinTCharToUtf() and provide ↵jan.nijtmans2019-06-031-1/+2
| |/ / | | | | | | | | | more flexible replacement functions
* | | Merge 8.7jan.nijtmans2019-03-111-2/+2
|\ \ \ | |/ /
| * | Change TCHAR -> WCHAR in many places, since that's what it is since Windows NTjan.nijtmans2019-03-111-2/+2
| | |
* | | Change ckalloc and friends to Tcl_Alloc and friends. Add two defines, ↵jan.nijtmans2018-09-011-7/+7
| | | | | | | | | | | | TCL_IO_FAILURE and TCL_NO_LENGTH (experimental, still open to be renamed following discussion)
* | | merge 8.7jan.nijtmans2018-06-251-10/+10
|\ \ \ | |/ /
| * | merge 8.6jan.nijtmans2018-06-251-10/+10
| |\ \ | | |/
| | * Simplify ToUtf(), expecially for TCL_UTF_MAX>3 (with correct surrogate ↵jan.nijtmans2018-06-251-8/+8
| | | | | | | | | | | | | | | handling). Fix various typo's
| * | Revert a few more (int -> size_t) transitions, which could effect extensions ↵jan.nijtmans2017-12-151-1/+1
| | | | | | | | | | | | | | | (such as Itcl 3.4) which use internal Tcl header files. Better wait until 9.0 for this. What we _can_ do is change some (internal) fields to 'unsigned': that doubles the epoch range without further danger. Thanks, Don, for pointing this out!
* | | Tcl-9 huge cleanup: Remove many unused internal functions which do nothing ↵jan.nijtmans2017-11-081-62/+0
|/ / | | | | | | more than occupy the internal stub table.
* | unbreak windows build (by previous commit)jan.nijtmans2017-04-111-1/+1
| |
* | More minor style fixes.dkf2017-04-101-76/+74
| |
* | Merge Harald's "robust-async-connect-tests" branch. Thanks!jan.nijtmans2017-04-101-1/+28
|\ \
| * | Replaced option "-unsupported1" by test command "testsocket debugflags" ↵oehhar2014-07-171-20/+11
| | | | | | | | | | | | (thanks Donal, Donald).
| * | Robust async connect tests by temporarely switching off auto continuation. ↵oehhar2014-06-051-1/+37
| | | | | | | | | | | | Ticket [13d3af3ad5]
* | | Minor style issues through the socket implementation code.dkf2017-04-091-211/+367
| | |
* | | Some more (internal) stub entries which can be cleaned up with ↵jan.nijtmans2017-04-061-0/+2
| | | | | | | | | | | | -DTCL_NO_DEPRECATED, because they are not used any more.
* | | Make OpenTcpServerEx accept a 'service' string parameter instead of a port.limeboy2016-12-141-2/+7
| | |
* | | Windows support and minor touchups to the documentation.limeboy2016-11-251-4/+13
| | |
* | | Implement the whole TIP 456 specification.limeboy2016-11-241-1/+1
| | | | | | | | | | | | Also introduces the `-reuseaddr' and `-reuseport' options for the `socket' command.
* | | Added stub entry for tip #456. Documentation and tests still missing. ↵jan.nijtmans2016-11-221-2/+3
| | | | | | | | | | | | Doesn't conform to TIP yet.
* | | This is patch.002 from ticket ↵jan.nijtmans2016-11-221-2/+2
| | | | | | | | | | | | [0b9d3ba2ba3e1e3fc33c97d5a9fa7ef85d11a696|0b9d3ba2ba], as first start of tip-456 implementation
* | | Use more "size_t" in stead of "int" internall. Also eliminate a lot of ↵jan.nijtmans2016-11-161-3/+3
| | | | | | | | | | | | type-casts which are not necessary any more.
* | | Tcl_SetVar -> Tcl_SetVar2 and comparable replacements, eliminating functions ↵jan.nijtmans2016-06-291-1/+1
| | | | | | | | | | | | which are deprecated.
* | | Fix [2538f373ffc78d6dba9c3d973c147a84fdd9bbd8|2538f373ffc78d6d]: crash in ↵jan.nijtmans2016-04-081-1/+1
|\ \ \ | | |/ | |/| | | | Tcl_OpenTcpServer() on Windows
| * | Fix [2538f373ffc78d6dba9c3d973c147a84fdd9bbd8|2538f373ffc78d6d]: crash in ↵jan.nijtmans2016-04-081-1/+1
| | | | | | | | | | | | Tcl_OpenTcpServer() on Windows
* | | Eliminate AT_FORK_INIT_VALUE/RESET_ATFORK_MUTEX macro's, since other values ↵jan.nijtmans2016-03-291-13/+4
|/ / | | | | | | | | than the default are not supported anyway. This results in the elimination of (empty functions anyway) AtForkPrepare/AtForkParent. Also improve consistancy in some variable names. No change of functionality.
* | Merge trunkoehhar2014-12-171-46/+46
|\ \
| * | Potential fix for [c6ed4acfd8]. ashok2014-12-061-1/+1
| | | | | | | | | | | | | | | | | | Simple typo in original fix for [336441ed59]. Was looping on statePtr->next instead of statePtr2->next. Would result in an infinite loop. Definitely a bug but whether it completely fixes the above in all cases needs to be tested.
| * | Remove a number of eol-spaces. No change in functionality.jan.nijtmans2014-11-141-45/+45
| | |
| * | fconfigure -peername and -sockname return empty string while async connect ↵oehhar2014-10-171-37/+56
| |\ \ | |/ / |/| / | |/ running.
* | Implemented tip-427: socket fconfigure option -connecting plus no ↵oehhar2014-09-261-39/+58
|/ | | | -peername,-sockname when still connecting.
* eliminate two unused variables.jan.nijtmans2014-05-231-2/+0
|
* Fix and improve socket -async [13d3af3ad5]oehhar2014-05-201-1432/+1995
|\
| * Beautify check for async connect reentryoehhar2014-04-081-4/+10
| |
| * Changed error report logic, that an async connect error is only reported by ↵oehhar2014-04-081-52/+94
| | | | | | | | 'fconfigure -error' and not by a possible last command terminating the async connect. The terminating command always returns "socket is not connected" on connect error. In addition, some flags were renamed: TCP_ASYNC_SOCKET to TCP_NONBLOCKING and also the new state flags.
| * Renamed function CreateClientSocket to TcpConnect and variable error to ↵oehhar2014-04-071-23/+28
| | | | | | | | connectError
| * Return async connect error by first following read or write operation.oehhar2014-04-071-1/+12
| |