Get UDP destination IP address

teckhaokoh
Posts: 34
Joined: Wed Sep 21, 2016 6:40 am

Get UDP destination IP address

Postby teckhaokoh » Wed Nov 27, 2019 6:05 am

I'm working on an application that running on UDP protocol.
I will need to differentiate the type of message whether it's broadcast or unicast.

I found that recvmsg() able to get me the IP headers message, which contained the destination IP address, so that I can identify from there. But, I couldn't get any info on recvmsg() in ESP32 API. recvmsg() is not supported in esp-idf?

Any suggestion of alternative API or methods available to identify whether it's broadcast message?

Who is online

Users browsing this forum: No registered users and 91 guests