2
有人可以在udp(4)和udp(6)之间的语法差异和可能的用例差异?udp(4)和udp(6)有什么区别?
I noticed there is a difference marked in the Node documentation when creating a datagram socket.
有人可以在udp(4)和udp(6)之间的语法差异和可能的用例差异?udp(4)和udp(6)有什么区别?
I noticed there is a difference marked in the Node documentation when creating a datagram socket.
唯一的区别是作为垫提到UDP6使用IPv6和udp4使用IPv4。您在创建套接字时指定的参数type
指示将使用哪个接口。其余的API是相同的。
IPv4/IPv6,不是? – Mat
是否存在性能差异或折衷? – DaBuj