Rick wrote:

>require 'socket'
>server = TCPServer.new('127.0.0.1',5190) 
>while (session = server.accept)
>  begin
>    thisUser = session.gets
>    thisUser = thisUser.scan(/<user>(.*?)<\/user>/).to_s
>
>    session.print "<userlist>#{thisUser}</userlist>\0"
>    
>  ensure
>    session.close if session
>    #puts "sesson closed"
>  end
>end
>
>TIA,
>
>Rick
>

No problem I can see. A bare "netcat" client...

    echo "<user>me</user>" | nc localhost 5190

... produces this

    <userlist>me</userlist>

Which looks kinda like what it should do I guess.

 
  Mark