From: Robert Klemme Date: 2013-06-09T21:36:52+09:00 Subject: Re: TCPServer/Socket and Marshal problem --089e0149ccde0bfb5904deb7ebb3 Content-Type: text/plain; charset=ISO-8859-1 On Sat, Jun 8, 2013 at 6:43 PM, Panagiotis Atmatzidis wrote: > 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 Line 79 or 80 is nonsense. Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/ --089e0149ccde0bfb5904deb7ebb3 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable



On Sat, Jun 8, 2013 at 6:43 PM, Panagiotis Atmatzidis <atma@conv= alesco.org> wrote:
Hello,

Just to answer my own question down below for future reference:

76 =A0 =A0 =A0 =A0 def client_address
77 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 if client =3D Thread.current['DRb= 9;]['client']
78 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 # returns sample array: = ["AF_INET", 54923, "120.0.0.2", "120.0.0.2"]<= br> 79 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 client.peeraddr if clien= t.respond_to?(:peeraddr)
80 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 return client.peeraddr 81 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 end
82 =A0 =A0 =A0 =A0 end
=A0
Line 79 or 80 i= s nonsense.

Cheers
robert


-- remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractice= s.com/
--089e0149ccde0bfb5904deb7ebb3--