Move server_accept_client function around