Use Socket send for temporary connections. remove send_data and send_file code.