[client_socket] moved receive_data() to the bottom