mrblib/mrb_simplehttpserver.rb
# Send data back to the client.
#
# @param [ BasicSocket ] io   The tcp socket where to send the data.
# @param [ String ]      data The data to send.
#
# @return [ String ]
Send data back to the client.
Send data back to the client .
def send_data(io, data)
    loop do
      n = io.syswrite(data)
      return if n == data.bytesize
      data = data[n..-1]
    end
  end
def send_data ( io , data ) loop do n = io . syswrite ( data ) return if n == data . bytesize data = data [ n .. - 1 ] end end
Send data back to the client.
Send data back to the client .
None
 String 
io
data
data The data to send.
data The data to send .