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
Post a Comment