vendor/bundle/ruby/1.8/gems/io-reactor-1.0.4/examples/chatserver.rb
def writeOutput
		bytes = @socket.syswrite( @obuffer )
		@obuffer[ 0, bytes ] = '' if bytes.nonzero?
		return @obuffer.length
	end
### Write as much of the output buffer to the socket as possible, and return
### the number of bytes remaining to be sent.
Write as much of the output buffer to the socket as possible, and return
the number of bytes remaining to be sent.
Write as much of the output buffer to the socket as possible and return the number of bytes remaining to be sent .
def writeOutput
		bytes = @socket.syswrite( @obuffer )
		@obuffer[ 0, bytes ] = '' if bytes.nonzero?
		return @obuffer.length
	end
def writeOutput bytes = @socket . syswrite ( @obuffer ) @obuffer [ 0 , bytes ] = '' if bytes . nonzero? return @obuffer . length end
Write as much of the output buffer to the socket as possible, and return
the number of bytes remaining to be sent.
Write as much of the output buffer to the socket as possible and return the number of bytes remaining to be sent .