When receiving a UDP packet using NWConnection.receiveMessage(), how can I find the sender's IP address?
For example, in C, the recvfrom() function writes the sender IP and port to a struct sockaddr that I can later examine. Is there something equivalent in Swift?
For example, in C, the recvfrom() function writes the sender IP and port to a struct sockaddr that I can later examine. Is there something equivalent in Swift?