Can somebody go over the syntax differences and possible use case differences between udp(4) and udp(6)?
I noticed there is a difference marked in the Node documentation when creating a datagram socket.
The only difference is as Mat mentioned that udp6 uses IPv6 and udp4 uses IPv4. The type
parameter you specify when creating a socket indicates which interface will be used. The rest of the API is the same.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With