method

do_write

do_write(s)
private

Writes s to the buffer. When the buffer is full or #sync is true the buffer is flushed to the underlying socket.