Class: PacketIO::IOListener

Inherits:
Base
  • Object
show all
Defined in:
lib/packet_io/io_listener.rb

Instance Method Summary collapse

Methods inherited from Base

#<<, #initialize, #on_data, #write

Constructor Details

This class inherits a constructor from PacketIO::Base

Instance Method Details

#run!Object



105
106
107
108
109
110
# File 'lib/packet_io/io_listener.rb', line 105

def run!
  while not @reader.eof?
    str = @reader.readpartial(4096)
    forward(str)
  end
end