From: "Joy W." Date: 2008-01-17T05:58:19+09:00 Subject: Re: How to get peeraddr Or, how can I enable WEBrick debug level logging? Now I see INFO messages only. Thank you for your help. Joy W. wrote: > Hi. How can I get peeraddr (client hostname and ipaddress) in a simple > server like the following? Thanks. > > #!/usr/bin/ruby --debug > require 'soap/rpc/standaloneServer' > PS = 'passphrase' > class MyClass > ... > end > class Server < SOAP::RPC::StandaloneServer > def on_init > Pq = MyClass.new > ... > end > end > svr = Server.new('Pq', PS, '0.0.0.0', 4241) > trap('INT') { svr.shutdown } > svr.start -- Posted via http://www.ruby-forum.com/.