RE: Bit by the Tcl/Tk socket bug
"Jeff Hobbs" <jeff-2ke/W+B1M/[email protected]> Wed, 14 Sep 2005 11:57:03 -0700
| Newsgroups | gmane.comp.windows.ce.freeware |
|---|---|
| Organization | ActiveState |
| Message-ID | <[email protected]> |
dlh2612000 wrote: > the Tcl/Tk 8.4.4 binaries for WinCE ARM that Jeff Hobbs > created a couple of years ago, I was able to port a version > of the client to the Axim and had it up and running in a > couple of days. The client works by opening a socket, > sending a command to the server, receiving the reply and then > closing the socket whenever there is a request from user > input. Works great - once. Unfortunately, after the socket > transaction, the program aborts after displaying a messagebox of "tcl: > select: 10022". After some Googling, I learned that others Yes, my experience as well. > Does anyone have any thoughts on a solution that > either fixes the Tcl/Tk socket problem or offers an easier > programming solution than wading into the Visual C++ approach? I believe the problem lies in needing to use the latest Win32 IO stuff as represented by Dave Gravereaux's iocpsock: http://wiki.tcl.tk/11304 The stuff currently used by the core relies partly on Keuchel's celib routines, which is where the select error comes from. We need to go "fully native" with the socket code that the Win/CE Tcl core uses. This would all be isolated to win/tclWinSock.c. Jeff ------------------------ Yahoo! Groups Sponsor --------------------~--> Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/W4wwlB/TM --------------------------------------------------------------------~->