qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Darryl L. Pierce" <dpie...@redhat.com>
Subject Re: c reactor / gordon's examples
Date Wed, 14 Jan 2015 15:46:38 GMT
On Wed, Jan 14, 2015 at 08:28:50AM -0500, Rafael Schloming wrote:
> import sys
> reactor = Reactor(Program())
> reactor.acceptor("", "5672")
> reactor.connection(Client("localhost:5672", sys.argv[1:]))
> reactor.run()

I like the simplicity of how a simple app can be setup. The above can be
used inside of an EventMachine block in Ruby. Would we be able to pass a
file descriptor to the underlying C code? I'm wondering if we could
provide an AMQPServer similar to others provided [1].

[1] https://github.com/eventmachine/eventmachine/tree/master/lib/em/protocols

Darryl L. Pierce, Sr. Software Engineer @ Red Hat, Inc.
Delivering value year after year.
Red Hat ranks #1 in value among software vendors.

View raw message