Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 |
| | |||||
* | Refactor the error handling logic around connect() | max | 2014-03-05 | 1 | -20/+17 |
| | |||||
* | avoid warnings about uninitialized infoPtr in DEBUG | max | 2014-03-05 | 1 | -2/+2 |
| | |||||
* | Print out the value of infoPtr in DEBUG, so that coexisting sockets can be ↵ | max | 2014-03-05 | 1 | -7/+5 |
| | | | | distinguished in the output. | ||||
* | Next async connect try works. Reset error and move notifier before connect. | oehhar | 2014-03-05 | 1 | -11/+12 |
| | |||||
* | * Use watchEvents only for read/write/close events of [chan event], don't ↵ | max | 2014-03-04 | 1 | -63/+82 |
| | | | | | mix with internal use of accept and connect events. * WIP: Refactor the tail of CreateClientSocket() to get notifications for completed async connects right. | ||||
* | Reverted move of WSAAsyncSelect before connect -> FD_Connect message does ↵ | oehhar | 2014-03-04 | 1 | -18/+13 |
| | | | | also fire if it exists on call. | ||||
* | WIP: async open event now passes to SocketEventProc() and connects but does ↵ | oehhar | 2014-03-03 | 1 | -15/+23 |
| | | | | not finalyze that (I guess). | ||||
* | Make printf debugging switchable, because it affects 'make test' | max | 2014-02-28 | 1 | -1/+8 |
| | |||||
* | Broken intermediate state. | max | 2014-02-28 | 1 | -146/+219 |
| | | | | | Calling back to CreateClientSocket() from the event loop works, but the final failed or succeeded state of an asyncronous socket does not get notified to the channel correctly. | ||||
* | merge trunk | max | 2013-11-18 | 1 | -3/+2 |
|\ | |||||
| * | Revert [3c0b0bbda6]. If this really is a problem, it needs to get fixed by ↵ | max | 2013-11-18 | 1 | -3/+2 |
| | | | | | | | | other means than covering behind void pointers. | ||||
* | | To prepare for completion of the [socket -async] implementation on Windows ↵ | max | 2013-11-18 | 1 | -165/+203 |
|/ | | | | | | | [13d3af3ad5]: * Move the server code from CreateSocket to Tcl_OpenTcpServer. * Rename CreateSocket to CreateClientSocket. * Unify the naming convention of socket channels with Unix (sock + hex representation of the state/info structure). | ||||
* | Eliminate some redundant Tcl_GetErrno() calls. | jan.nijtmans | 2013-11-18 | 1 | -2/+3 |
| | |||||
* | Map WSAEWOULDBLOCK to EWOULDBLOCK. Suggested by Reinhard Max. | jan.nijtmans | 2013-11-16 | 1 | -3/+3 |
| | |||||
* | Don't leak getaddrinfo() results | max | 2013-11-15 | 1 | -2/+2 |
| | |||||
* | Fix compiler warning when compiling Itcl 4.0: | jan.nijtmans | 2013-07-03 | 1 | -2/+3 |
| | | | | | | In file included from ./generic/itcl2TclOO.c:12:0: /Tcl/include/tclInt.h:3012:8: warning: ‘struct addrinfo’ declared inside parameter list [enabled by default] const char **errorMsgPtr); ^ | ||||
* | Don't use TclpInetNtoa any more, use inet_ntoa in stead. Since IP6 support ↵ | jan.nijtmans | 2013-06-21 | 1 | -0/+1 |
| | | | | it's even not necessary any more (except for fake-rfc2553, but mutexes are used here already) , but it's in the internal stub table so we cannot remove it until 9.0 | ||||
* | Remove wrapper macro for ntohs(): unnecessary, because it doesn't require an ↵ | jan.nijtmans | 2012-08-20 | 1 | -20/+2 |
|\ | | | | | | | initialized winsock_2 library | ||||
| * | Remove wrapper macro for ntohs(): unnecessary, because it doesn't require an ↵ | jan.nijtmans | 2012-08-20 | 1 | -20/+2 |
| | | | | | | | | initialized winsock_2 library | ||||
* | | Complete multi-fd server socket channels on Windows [Bug #3545363]. | max | 2012-08-09 | 1 | -120/+190 |
|\ \ | |||||
| * | | [Bug: 3545363]: Handle socket with multiple underlying file descriptors ↵ | twylite | 2012-07-24 | 1 | -120/+187 |
| | | | | | | | | | | | | where required (TcpCloseProc, SocketProc). Refactor socket/descriptor setup. Fix memory leak in socket close (TcpCloseProc) and related dangling pointers in SocketEventProc. | ||||
| * | | [Bug: 3545363]: Use a large enough buffer for accept()ing IPv6 | max | 2012-07-19 | 1 | -4/+7 |
| | | | | | | | | | | | | connections. Fix conversion of host and port for passing to the accept proc to be independent of the IP version. | ||||
* | | | Fixes to my previous commit, from Francois Vogel. (My thanks and apologies!) | dkf | 2012-08-05 | 1 | -1/+1 |
| | | | |||||
* | | | Final part of result generation conversion (modulo any minor blunders) | dkf | 2012-08-05 | 1 | -20/+22 |
|/ / | |||||
* | | merge 8.5 | dgp | 2012-07-10 | 1 | -7/+3 |
|\ \ | |/ | |||||
| * | * win/tclWinSock.c (InitializeHostName): Corrected logic that | dkf | 2012-07-10 | 1 | -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 modifier | jan.nijtmans | 2012-07-08 | 1 | -4/+4 |
|\ \ | |/ | |||||
| * | and don't forget the % | jan.nijtmans | 2012-07-08 | 1 | -4/+4 |
| | | |||||
| * | add TCL_I_MODIFIER and use it in the correct places | jan.nijtmans | 2012-07-08 | 1 | -4/+4 |
| | | |||||
* | | Factor out a number of common patterns of use of Tcl_DStringAppend. | dkf | 2012-07-03 | 1 | -4/+4 |
| | | |||||
* | | Rework the error message generation of [socket], so that the error | max | 2012-06-22 | 1 | -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.nijtmans | 2012-05-24 | 1 | -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.nijtmans | 2012-05-22 | 1 | -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.nijtmans | 2012-05-22 | 1 | -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.nijtmans | 2012-04-11 | 1 | -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 less | dkf | 2012-04-05 | 1 | -221/+178 |
| | | | | | | | | | baroque in its internals. | ||||
* | | | [Bug 510001]: TclSockMinimumBuffers needs plat imp | jan.nijtmans | 2012-04-04 | 1 | -14/+6 |
|\ \ \ | |/ / | |||||
| * | | [Bug 510001]: TclSockMinimumBuffers needs plat imp | jan.nijtmans | 2012-04-04 | 1 | -13/+5 |
| |\ \ | | |/ | |||||
| | * | [Bug 510001]: TclSockMinimumBuffers needs plat imp | jan.nijtmans | 2012-04-04 | 1 | -3/+3 |
| | |\ | |||||
| | | * | better solution for bug-510001bug_510001 | jan.nijtmans | 2012-03-29 | 1 | -2/+2 |
| | |/ | | | | | | | it fills a correctly working stub entry for Win64 | ||||
* | | | [Bug 3508771] load tclreg.dll in cygwin tclsh | jan.nijtmans | 2012-04-02 | 1 | -21/+21 |
|\ \ \ | |/ / | | | | | | | Implement TclWinGetTclInstance, TclpGetTZName, and various others for Cygwin | ||||
| * | | [Bug 3508771] load tclreg.dll in cygwin tclsh | jan.nijtmans | 2012-03-30 | 1 | -4/+4 |
| |\ \ | | |/ | | | | | | | Implement TclWinGetTclInstance, TclpGetTZName, and various others for Cygwin | ||||
* | | | Revert some cygwin-related signature changes from [835f8e1e9d] (2010-01-22). | jan.nijtmans | 2012-03-23 | 1 | -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 warnings | jan.nijtmans | 2011-08-16 | 1 | -1/+1 |
| |\ \ | | |/ | |||||
| * | | [Bug 3388350] mingw64 compiler warnings | jan.nijtmans | 2011-08-15 | 1 | -1/+3 |
| |\ \ | | |/ | |||||
| | * | [Bug 3388350] mingw64 compiler warnings | jan.nijtmans | 2011-08-15 | 1 | -3/+2 |
| | | | |||||
* | | | [Bug 3388350] mingw64 compiler warnings | jan.nijtmans | 2011-08-09 | 1 | -1/+3 |
|\ \ \ | |/ / |