Hello I want to start a server with prot=0 and after get the real port. I write this : EM.run do server_uuid=EM.start_server "0.0.0.0",0,EchoServer io=Evma::Reactor.instance.get_selectable(server_uuid) af,port,host,ip=io.addr end But I can''t use the instance of reactor I obtaint a error How can use the socket embedded in the EvmaTCPServer regards, gdo -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/eventmachine-talk/attachments/20081117/76695aed/attachment.html>
try bottom of here: http://rubyeventmachine.com/wiki/CodeSnippets Cheers! -=R On Mon, Nov 17, 2008 at 8:15 AM, Guillaume Dorchies <guillaume.dorchies at gmail.com> wrote:> Hello > > I want to start a server with prot=0 and after get the real port. > > I write this : > EM.run do > server_uuid=EM.start_server "0.0.0.0",0,EchoServer > io=Evma::Reactor.instance.get_ > selectable(server_uuid) > af,port,host,ip=io.addr > end > > But I can''t use the instance of reactor I obtaint a error > How can use the socket embedded in the EvmaTCPServer > > regards, gdo > > _______________________________________________ > Eventmachine-talk mailing list > Eventmachine-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/eventmachine-talk >-- Thanks! -=R
Thanks a lot 2008/11/19 Roger Pack <rogerpack2005 at gmail.com>> try bottom of here: > http://rubyeventmachine.com/wiki/CodeSnippets > Cheers! > -=R > > On Mon, Nov 17, 2008 at 8:15 AM, Guillaume Dorchies > <guillaume.dorchies at gmail.com> wrote: > > Hello > > > > I want to start a server with prot=0 and after get the real port. > > > > I write this : > > EM.run do > > server_uuid=EM.start_server "0.0.0.0",0,EchoServer > > io=Evma::Reactor.instance.get_ > > selectable(server_uuid) > > af,port,host,ip=io.addr > > end > > > > But I can''t use the instance of reactor I obtaint a error > > How can use the socket embedded in the EvmaTCPServer > > > > regards, gdo > > > > _______________________________________________ > > Eventmachine-talk mailing list > > Eventmachine-talk at rubyforge.org > > http://rubyforge.org/mailman/listinfo/eventmachine-talk > > > > > > -- > Thanks! > -=R > _______________________________________________ > Eventmachine-talk mailing list > Eventmachine-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/eventmachine-talk >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/eventmachine-talk/attachments/20081119/af4b0905/attachment.html>