Use loop to send buffer.