Will getpeername() return the IP address info of the remote UDP peer ? I suspect that it is not going to work as it requires connection.
Please confirm whether getpeername() can be used to get the remote UDP peer address.
If a UDP socket isn't connected there is no peer. So there can't be a peer name.
And if it is connected, you already know who you connected it to.
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