client: Add functions to handle server_id structure