Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | unbreak windows build (by previous commit) | jan.nijtmans | 2017-04-11 | 1 | -1/+1 |
| | |||||
* | More minor style fixes. | dkf | 2017-04-10 | 1 | -76/+74 |
| | |||||
* | Merge Harald's "robust-async-connect-tests" branch. Thanks! | jan.nijtmans | 2017-04-10 | 1 | -1/+28 |
|\ | |||||
| * | Replaced option "-unsupported1" by test command "testsocket debugflags" ↵ | oehhar | 2014-07-17 | 1 | -20/+11 |
| | | | | | | | | (thanks Donal, Donald). | ||||
| * | Robust async connect tests by temporarely switching off auto continuation. ↵ | oehhar | 2014-06-05 | 1 | -1/+37 |
| | | | | | | | | Ticket [13d3af3ad5] | ||||
* | | Minor style issues through the socket implementation code. | dkf | 2017-04-09 | 1 | -211/+367 |
| | | |||||
* | | Some more (internal) stub entries which can be cleaned up with ↵ | jan.nijtmans | 2017-04-06 | 1 | -0/+2 |
| | | | | | | | | -DTCL_NO_DEPRECATED, because they are not used any more. | ||||
* | | Make OpenTcpServerEx accept a 'service' string parameter instead of a port. | limeboy | 2016-12-14 | 1 | -2/+7 |
| | | |||||
* | | Windows support and minor touchups to the documentation. | limeboy | 2016-11-25 | 1 | -4/+13 |
| | | |||||
* | | Implement the whole TIP 456 specification. | limeboy | 2016-11-24 | 1 | -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.nijtmans | 2016-11-22 | 1 | -2/+3 |
| | | | | | | | | Doesn't conform to TIP yet. | ||||
* | | This is patch.002 from ticket ↵ | jan.nijtmans | 2016-11-22 | 1 | -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.nijtmans | 2016-11-16 | 1 | -3/+3 |
| | | | | | | | | type-casts which are not necessary any more. | ||||
* | | Tcl_SetVar -> Tcl_SetVar2 and comparable replacements, eliminating functions ↵ | jan.nijtmans | 2016-06-29 | 1 | -1/+1 |
| | | | | | | | | which are deprecated. | ||||
* | | Fix [2538f373ffc78d6dba9c3d973c147a84fdd9bbd8|2538f373ffc78d6d]: crash in ↵ | jan.nijtmans | 2016-04-08 | 1 | -1/+1 |
|\ \ | | | | | | | | | | Tcl_OpenTcpServer() on Windows | ||||
| * | | Fix [2538f373ffc78d6dba9c3d973c147a84fdd9bbd8|2538f373ffc78d6d]: crash in ↵ | jan.nijtmans | 2016-04-08 | 1 | -1/+1 |
| | | | | | | | | | | | | Tcl_OpenTcpServer() on Windows | ||||
* | | | Eliminate AT_FORK_INIT_VALUE/RESET_ATFORK_MUTEX macro's, since other values ↵ | jan.nijtmans | 2016-03-29 | 1 | -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 trunk | oehhar | 2014-12-17 | 1 | -46/+46 |
|\ \ | |||||
| * | | Potential fix for [c6ed4acfd8]. | ashok | 2014-12-06 | 1 | -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.nijtmans | 2014-11-14 | 1 | -45/+45 |
| | | | |||||
| * | | fconfigure -peername and -sockname return empty string while async connect ↵ | oehhar | 2014-10-17 | 1 | -37/+56 |
| |\ \ | |/ / |/| / | |/ | running. | ||||
* | | Implemented tip-427: socket fconfigure option -connecting plus no ↵ | oehhar | 2014-09-26 | 1 | -39/+58 |
|/ | | | | -peername,-sockname when still connecting. | ||||
* | eliminate two unused variables. | jan.nijtmans | 2014-05-23 | 1 | -2/+0 |
| | |||||
* | Fix and improve socket -async [13d3af3ad5] | oehhar | 2014-05-20 | 1 | -1432/+1995 |
|\ | |||||
| * | Beautify check for async connect reentry | oehhar | 2014-04-08 | 1 | -4/+10 |
| | | |||||
| * | Changed error report logic, that an async connect error is only reported by ↵ | oehhar | 2014-04-08 | 1 | -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 ↵ | oehhar | 2014-04-07 | 1 | -23/+28 |
| | | | | | | | | connectError | ||||
| * | Return async connect error by first following read or write operation. | oehhar | 2014-04-07 | 1 | -1/+12 |
| | | |||||
| * | Avoid multiple returns of connect errors | oehhar | 2014-04-04 | 1 | -43/+103 |
| | | |||||
| * | Marked all communication variables which are set by notifier thread with ↵ | oehhar | 2014-04-02 | 1 | -3/+4 |
| | | | | | | | | "volatile". | ||||
| * | Removed thread debugging printf messages | oehhar | 2014-04-01 | 1 | -110/+13 |
| | | |||||
* | | Remove unused variable, don't use deprecated function, some formatting. | jan.nijtmans | 2014-04-16 | 1 | -2/+2 |
| | | |||||
* | | Upgrade from Winsock 1.1 to Winsock 2.2, which is always available on ↵ | jan.nijtmans | 2014-04-16 | 1 | -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.nijtmans | 2014-04-16 | 1 | -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 failurebug_581937ab1e | oehhar | 2014-04-02 | 1 | -33/+40 |
| |\ \ | | |/ | |||||
| | * | Fire also readable event on final async connect failure. Armor ↵ | oehhar | 2014-03-24 | 1 | -45/+84 |
| | | | | | | | | | | | | WaitForSocketEvent by access signal against notifier thread access. | ||||
| | * | Be sure tsd pointer to the info structure is invalidated before memory free | oehhar | 2014-03-23 | 1 | -1/+20 |
| | | | |||||
| | * | WaitForConnection like tclUnixSock.c, new option [fconfigure -connecting] | oehhar | 2014-03-14 | 1 | -42/+34 |
| | | | |||||
| | * | file tclWinSock.c reorganized to minimize diff to tclUnixSock.c. No ↵ | oehhar | 2014-03-14 | 1 | -1455/+1498 |
| | | | | | | | | | | | | functional change | ||||
| | * | Remove writable shortcut and errorneous workaround to get [connect -async] ↵bug_13d3af3ad5_fork | oehhar | 2014-03-14 | 1 | -18/+18 |
| | | | | | | | | | | | | fail error to [fconfigure -error] | ||||
| | * | Async connect terminates: fire fileevent by setting readyEvent, propage ↵ | oehhar | 2014-03-14 | 1 | -52/+110 |
| | | | | | | | | | | | | commit fail message to [fconfigure -error] | ||||
| | * | No [fconfigure -error] error in connect process; gets after failed async ↵ | oehhar | 2014-03-11 | 1 | -10/+19 |
| | | | | | | | | | | | | connect returns connect error | ||||
| | * | Additional security for wrong pointer | oehhar | 2014-03-10 | 1 | -0/+6 |
| | | | |||||
| | * | Fire write fileevent if async connect fails finally (test socket-14.2) | oehhar | 2014-03-10 | 1 | -2/+12 |
| | | | |||||
| | * | Also continue async connect without event loop if gets/puts is called (test ↵ | oehhar | 2014-03-10 | 1 | -22/+34 |
| | | | | | | | | | | | | socket-14.8.*) | ||||
| | * | Workaround if FD_CONNECT notification comes before socket list registration ↵ | oehhar | 2014-03-10 | 1 | -80/+184 |
| | | | | | | | | | | | | in TcpThreadActionProc | ||||
| | * | Still incomplete info structure in event proc: try to protect with locks ↵ | oehhar | 2014-03-07 | 1 | -12/+51 |
| | | | | | | | | | | | | (unsuccesful). Probably locks in accept socket creation missing. | ||||
| | * | More debug to chase different fd in struct than in callback | oehhar | 2014-03-06 | 1 | -53/+40 |
| | | | |||||
| | * | Terminate async connect synchronously by any blocking operation | oehhar | 2014-03-06 | 1 | -12/+104 |
| | | | |||||
| | * | "gets" blocked after async cannect: SOCKET_ASYNC_CONNECT was not cleared | oehhar | 2014-03-05 | 1 | -12/+12 |
| | | |