Re: sockets, select or: twisted and other file-descriptors

From: Peter Hansen (peter_at_engcorp.com)
Date: 11/29/03


Date: Sat, 29 Nov 2003 17:40:24 -0500


"Diez B. Roggisch" wrote:
>
> I now want to rewrite it using select and no more threads. If it was only a
> network-application, I'd try to make my first steps using twisted. However,
> I'm not sure if its possible to have twisteds select also take my
> filedescriptors for the serial connection.

Twisted has some (or full?) support for serial ports, so you should
investigate it more closely to see just what it does and whether that
would work for your own application.

A download is free, and you can browse the source pretty easily to
get the gist of it. I suspect you'll see right away that it is or
is not suitable.

(Of course, someone else might be able to say "yeah, it works" or something
already, but there's no real substitute for just checking for yourself.)

-Peter