From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Lee Chin" Subject: Getting the IP address of a UDP client Date: Fri, 03 Jan 2003 13:43:26 -0500 Sender: linux-newbie-owner@vger.kernel.org Message-ID: <20030103184326.96367.qmail@mail.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline List-Id: Content-Type: text/plain; charset="us-ascii" To: hahn@physics.mcmaster.ca, leechin@mail.com, linux-newbie@vger.kernel.org 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 -- __________________________________________________________ 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 majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs