Re: redmond event loop
[email protected] (Steve Lidie)
| Newsgroups | perl.loop |
|---|---|
| Organization | Lehigh University Computing Center |
| Message-ID | <[email protected]> |
Uri Guttman wrote: > > >>>>> "NI" == Nick Ing-Simmons <[email protected]> writes: > > NI> The Tk event loop works (after a fashion) on Win32 and is a > NI> self-contained XS module Tk::Event (Tk uses Tk::Event rather than > NI> vice versa). The snag is that 'fileevent' is seriously flawed on > NI> Win32 - e.g. you cannot wait for a 'listen' socket to be readable, > NI> nor on pipes, nor console. Basically only 'data' sockets work. > NI> The PerlIO stuff is intended to allow that to be fixed the same > NI> way Tcl/Tk fixed it - by using per-handle versions of read() etc. > NI> rather than C run-times flawed faking of UNIX semantics. > > well, i need the socket stuff in particular. how does the redmond > perl/tk handle that? Preliminary testing shows that Perl's native select() works OK on Win32 sockets. Perhaps Tk::Event could be used for everything else.