I have been trying to get the ip address of clients connected to a
simple chat server for logging purposes, but every time I use io.addr or
io.peeraddr, the client disconnects "connection to host lost" and the
server reports no errors. Is this because the client is connecting to
localhost? io is defined by serve(io).

Attachments:
http://www.ruby-forum.com/attachment/6874/current_gserver_chat.rb


-- 
Posted via http://www.ruby-forum.com/.