server thread function and send_file procedure are realized