vendor/bundle/ruby/1.8/gems/io-reactor-1.0.4/examples/chatserver.rb
def handleIOEvent( io, event )
		case event

		when :error
			@server.disconnectUser( self )
			
		when :read
			input = readInput()
			@server.processInput( self, *input ) unless input.empty?

		when :write
			bytesLeft = writeOutput()
			@server.reactor.disableEvents( @socket, :write ) if bytesLeft.zero?

		end

	end
### Handle poll events on the socket
Handle poll events on the socket
Handle poll events on the socket
def handleIOEvent( io, event )
		case event
		when :error
			@server.disconnectUser( self )
		when :read
			input = readInput()
			@server.processInput( self, *input ) unless input.empty?
		when :write
			bytesLeft = writeOutput()
			@server.reactor.disableEvents( @socket, :write ) if bytesLeft.zero?
		end
	end
def handleIOEvent ( io , event ) case event when :error @server . disconnectUser ( self ) when :read input = readInput ( ) @server . processInput ( self , * input ) unless input . empty? when :write bytesLeft = writeOutput ( ) @server . reactor . disableEvents ( @socket , :write ) if bytesLeft . zero? end end
Handle poll events on the socket
Handle poll events on the socket
io
event