c - Receive UDP datagram and parse source port -


i'm trying send commands using udp. receiver supposed receive udp datagram , reply. however, reply sent sender's source port. know how parse the port (struct header , move pointer right position...), however, i'm looking function returns whole received frame including headers , not datagram/data.

what recvfrom() function? allows grab data , fills sockaddr struct can find source port of sender.


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

image - ClassNotFoundException when add a prebuilt apk into system.img in android -