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.
在 Node.js 中,当我尝试将两个 UDP 套接字绑定到同一个端口时,我没有收到任何错误,但最后一个服务器是唯一接收数据报的服务器。
有没有办法防止这种碰撞? 我可以检测到哪个端口已经被占用了吗?
似乎不可能检测到有界端口,除非通过发送和等待答案。