Skip to contentSkip to conversation

Getting the IP address of a UDP client

DISCUSSION Lee Chin 1 participant 1 message Jan 3, 2003

lore
Share & tools
lore

Lee Chin

author
#0 lore raw

Hi
I can use getpeername to get the IP address of a client on a connected TCP socket, but when I have a UDP client that just sent me a packet, how do I get the IP address of that UDP client?

Thanks
Lee

Signature · 12 lines
__________________________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup

Meet Singles
http://corp.mail.com/lavalife

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs