From: Panagiotis Atmatzidis Date: 2013-06-09T01:43:43+09:00 Subject: Re: TCPServer/Socket and Marshal problem Hello, Just to answer my own question down below for future reference: 76 def client_address 77 if client = Thread.current['DRb']['client'] 78 # returns sample array: ["AF_INET", 54923, "120.0.0.2", "120.0.0.2"] 79 client.peeraddr if client.respond_to?(:peeraddr) 80 return client.peeraddr 81 end 82 end On 5 Ιουν 2013, at 21:32 , Panagiotis Atmatzidis wrote: > Hello, > > On 5 Ιουν 2013, at 15:45 , SEKI Masatoshi wrote: > >> [...] >> >> I recommend that you read the dRuby of the first version. I paste to the gist. >> >> https://gist.github.com/seki/5713863 > > > Okay, from what I get you implemented a minor version of DRuby using sockets yourself. Smart :D > > One quick question is, using 'drb' gem, how can I get the IP or IP(s) of connected clients? > > With sockets is straight forward but with DRuby seems to be tricky. > > > Panagiotis (atmosx) Atmatzidis > > email: atma@convalesco.org > URL: http://www.convalesco.org > GnuPG ID: 0x1A7BFEC5 > gpg --keyserver pgp.mit.edu --recv-keys 1A7BFEC5 > -- > The wise man said: "Never argue with an idiot. They bring you down to their level and beat you with experience." > > > Panagiotis (atmosx) Atmatzidis email: atma@convalesco.org URL: http://www.convalesco.org GnuPG ID: 0x1A7BFEC5 gpg --keyserver pgp.mit.edu --recv-keys 1A7BFEC5 -- The wise man said: "Never argue with an idiot. They bring you down to their level and beat you with experience."