localCandidates is now a shared_ptr and transportName a scoped_ptr