[Twisted-Python] Bluetooth reactor interface

Jean-Paul Calderone exarkun at divmod.com
Wed Aug 6 16:04:49 EDT 2008


On Wed, 06 Aug 2008 15:53:33 -0400, Nadav Aharony <nadav at mit.edu> wrote:
>(forwarding for Daniel who had some list posting trouble)
>
>Hi all-
>I'd like to use Twisted to manage bluetooth communication. I haven't
>found any existing method for doing this, so I'd like to write and
>implement a new reactor interface (on par with TCP/UDP) that wraps the
>lightblue library. What's the right way to go about extending Twisted in
>this way?

A lot of reactors implement `IReactorFDSet´:

  http://twistedmatrix.com/documents/current/api/twisted.internet.interfaces.IReactorFDSet.html

If you don't mind that some reactors don't implement this, you can
use it to implement bluetooth support.

Jean-Paul




More information about the Twisted-Python mailing list