guilherme antoniolo
2008-Mar-12 01:20 UTC
[Rev-talk] callback on_connect is not being called.
Greetings devs,
I just ran across rev-project today. I wrote the following example in
README:
HOST = ''127.0.0.1''
PORT = 4321
server = Rev::TCPServer.new(ADDR, PORT) do |c|
c.on_connect { puts "#{remote_addr}:#{remote_port} connected" }
c.on_close { puts "#{remote_addr}:#{remote_port} disconnected" }
c.on_read { |data| write data }
end
server.attach(Rev::Loop.default)
puts "Echo server listening on #{HOST}:#{PORT}"
Rev::Loop.default.run
Everything seems to be running well, except the :on_connect callback is not
being called anyhow!
Thanks,
Guilherme
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://rubyforge.org/pipermail/rev-talk/attachments/20080311/0efd078e/attachment.html
On Tue, Mar 11, 2008 at 7:20 PM, guilherme antoniolo <antoniolo at gmail.com> wrote:> Everything seems to be running well, except the :on_connect callback is > not being called anyhow! >Yep, confirmed. Something''s wrong. I''ll take a look. -- Tony Arcieri medioh.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rev-talk/attachments/20080311/18c75936/attachment.html
On Tue, Mar 11, 2008 at 9:55 PM, Tony Arcieri <tony at medioh.com> wrote:> Yep, confirmed. Something''s wrong. I''ll take a look. >In the meantime the subclassing syntax is working correctly. -- Tony Arcieri medioh.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rev-talk/attachments/20080311/b04805b3/attachment.html