summaryrefslogtreecommitdiffstats
path: root/win/tclWinSock.c
Commit message (Collapse)AuthorAgeFilesLines
* Eliminate many unnecessary type-casts, mostly (size_t) when value is already ↵jan.nijtmans2020-08-111-1/+1
| | | | size_t or int
* Win: use physical host DNS name instead cluster name. Ticket [da235271f1]oehhar2020-04-301-1/+1
|
* Merge-mark 8.5. Remove some ARGSUSED usage.jan.nijtmans2020-04-171-7/+0
|\
| * Unbreak shared windows build. Remove some ARGSUSED usage.jan.nijtmans2020-04-171-3/+0
| |
| * win socket -async: do not loose connect notification by temporarily stop ↵oehhar2014-05-301-6/+14
| |\ | | | | | | | | | connect monitoring. Bug [336441ed59]
| | * Try not to loose FD_CONNECT by switching monitoring off.oehhar2014-05-291-5/+9
| |/
* | Fix [da235271f1]: [info hostname] on Windows is limited to max NetBIOS name ↵jan.nijtmans2020-02-211-3/+3
| | | | | | | | length
* | Reset WSAGetLastError()/errno always, even when this error is not reported ↵jan.nijtmans2020-01-301-5/+6
| | | | | | | | due to the earlier error.
* | According to the ↵jan.nijtmans2020-01-301-16/+7
| | | | | | | | [https://core.tcl-lang.org/tcl/artifact?udc=1&ln=469-471&name=5ac7827cd282bbda|documentation], close2Proc(...., 0) should operate the same as closeProc(). Fix the UNIX/Windows socket channels to behave like that.
* | Let's use GetWindowLongW/SetWindowLongW on Win32 directly. Missed them ↵jan.nijtmans2019-09-201-2/+2
| | | | | | | | because they are not used in Win64.
* | Some more *A() -> *W() Win32 API changes, making Unicode calls Explicit.jan.nijtmans2019-09-191-23/+23
| |
* | TCHAR -> WCHAR converions (and corresponding Win32 API call changes), since ↵jan.nijtmans2019-09-181-8/+8
| | | | | | | | we are impicitly compiling with -DUNICODE
* | Simplify ToUtf(), expecially for TCL_UTF_MAX>3 (with correct surrogate ↵jan.nijtmans2018-06-251-8/+8
| | | | | | | | | | handling). Fix various typo's
* | Fix [2538f373ffc78d6dba9c3d973c147a84fdd9bbd8|2538f373ffc78d6d]: crash in ↵jan.nijtmans2016-04-081-1/+1
| | | | | | | | Tcl_OpenTcpServer() on Windows
* | 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
| | |
| * | Avoid multiple returns of connect errorsoehhar2014-04-041-43/+103
| | |
| * | Marked all communication variables which are set by notifier thread with ↵oehhar2014-04-021-3/+4
| | | | | | | | | | | | "volatile".
| * | Removed thread debugging printf messagesoehhar2014-04-011-110/+13
| | |
* | | Remove unused variable, don't use deprecated function, some formatting.jan.nijtmans2014-04-161-2/+2
| | |
* | | Upgrade from Winsock 1.1 to Winsock 2.2, which is always available on ↵jan.nijtmans2014-04-161-75/+3
|\ \ \ | | |/ | |/| | | | | | | | | | Win2000+. See: [http://msdn.microsoft.com/en-us/library/windows/desktop/ms742213%28v=vs.85%29.aspx] for details. Move winsock initialization to TclpInitPlatform(void), so we can be sure everywhere that we have an initialized winsock2. Stub entries for TclWinGetServByName/TclWinGetSockOpt/TclWinSetSockOpt are no longer necessary (will be removed in 9.0, but are kept in 8.x)
| * | Upgrade from Winsock 1.1 to Winsock 2.2, which is always available on ↵jan.nijtmans2014-04-161-75/+3
| | | | | | | | | | | | | | | | | | Win2000+. See: [http://msdn.microsoft.com/en-us/library/windows/desktop/ms742213%28v=vs.85%29.aspx] for details. Move winsock initialization to TclpInitPlatform(void), so we can be sure everywhere that we have an initialized winsock2. Stub entries for TclWinGetServByName/TclWinGetSockOpt/TclWinSetSockOpt are no longer necessary (will be removed in 9.0, but are kept in 8.x)
| * | Fix bug [581937ab1e]: fire readable event on async socket connect failureoehhar2014-04-021-33/+40
| |\ \ | | |/
| | * Fire also readable event on final async connect failure. Armor ↵oehhar2014-03-241-45/+84
| | | | | | | | | | | | WaitForSocketEvent by access signal against notifier thread access.
| | * Be sure tsd pointer to the info structure is invalidated before memory freeoehhar2014-03-231-1/+20
| | |
| | * WaitForConnection like tclUnixSock.c, new option [fconfigure -connecting]oehhar2014-03-141-42/+34
| | |
| | * file tclWinSock.c reorganized to minimize diff to tclUnixSock.c. No ↵oehhar2014-03-141-1455/+1498
| | | | | | | | | | | | functional change
| | * Remove writable shortcut and errorneous workaround to get [connect -async] ↵oehhar2014-03-141-18/+18
| | | | | | | | | | | | fail error to [fconfigure -error]
| | * Async connect terminates: fire fileevent by setting readyEvent, propage ↵oehhar2014-03-141-52/+110
| | | | | | | | | | | | commit fail message to [fconfigure -error]
| | * No [fconfigure -error] error in connect process; gets after failed async ↵oehhar2014-03-111-10/+19
| | | | | | | | | | | | connect returns connect error
| | * Additional security for wrong pointeroehhar2014-03-101-0/+6
| | |
| | * Fire write fileevent if async connect fails finally (test socket-14.2)oehhar2014-03-101-2/+12
| | |
| | * Also continue async connect without event loop if gets/puts is called (test ↵oehhar2014-03-101-22/+34
| | | | | | | | | | | | socket-14.8.*)
| | * Workaround if FD_CONNECT notification comes before socket list registration ↵oehhar2014-03-101-80/+184
| | | | | | | | | | | | in TcpThreadActionProc
| | * Still incomplete info structure in event proc: try to protect with locks ↵oehhar2014-03-071-12/+51
| | | | | | | | | | | | (unsuccesful). Probably locks in accept socket creation missing.
| | * More debug to chase different fd in struct than in callbackoehhar2014-03-061-53/+40
| | |
| | * Terminate async connect synchronously by any blocking operationoehhar2014-03-061-12/+104
| | |
| | * "gets" blocked after async cannect: SOCKET_ASYNC_CONNECT was not clearedoehhar2014-03-051-12/+12
| | |
| | * Refactor the error handling logic around connect()max2014-03-051-20/+17
| | |
| | * avoid warnings about uninitialized infoPtr in DEBUGmax2014-03-051-2/+2
| | |
| | * Print out the value of infoPtr in DEBUG, so that coexisting sockets can be ↵max2014-03-051-7/+5
| | | | | | | | | | | | distinguished in the output.