# File examples/chatserver.rb, line 105 def readInput rary = [] @ibuffer << @socket.sysread( MTU ) $stderr.puts "Input buffer for user #{self} now: #@ibuffer" if $VERBOSE while (( pos = @ibuffer.index EOL )) $stderr.puts "Found terminating EOL. Splitting off 0..#{pos} of the input buffer." if $VERBOSE rary << @ibuffer[ 0, pos ] @ibuffer[ 0, pos + EOL.length ] = '' end return rary rescue EOFError @server.disconnectUser( self ) return [] end