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

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

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -