void send_data()
Callback called when it is clear to send data over the connection. This function does the actual sending.