Swift: UDP package is not received
I wrote a small Swift program that should send a Hello World!
UDP package to any IPv6 link-local node that’s listening. However, using netcat via nc -l 1234
to listen for the message on port 1234
never receives it. Here’s my code (this class instance is being kept alive inside a SwiftUI view):