examples/chatserver.rb
def write_output
		bytes = self.socket.syswrite( self.obuffer )
		self.obuffer.slice!( 0, bytes ) if bytes.nonzero?

		return self.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 write_output
		bytes = self.socket.syswrite( self.obuffer )
		self.obuffer.slice!( 0, bytes ) if bytes.nonzero?
		return self.obuffer.length
	end
def write_output bytes = self . socket . syswrite ( self . obuffer ) self . obuffer . slice! ( 0 , bytes ) if bytes . nonzero? return self . 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 .