Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
更新:“可用端口”是指:操作系统可以选择任何可用端口,即我不想指定端口。
问题一:使用端口号 0
问题2:使用acceptor.local_endpoint().port()
acceptor.local_endpoint().port()