Hi Mark, I am not using recvfrom... I simply use recv In other words, I create the server UDP socket, listen on a port then enter into a while loop just doing a recv. Now the thing is, many different clients are sending packets to the server, and I need to reply to each of them at a later time, so I need to get their IP addresses and store it away so I can do a sendto at a later time
Thanks Lee --- Mark Hahn <[EMAIL PROTECTED]> wrote: > > This is a UDP server ... so I do not use accept, I > > simply have a server loop that does a "recv" ... > > > > So the server does a recvfrom and then a sendto on > the > > if you're using recvfrom, why aren't you simply > providing > a buffer for the "from" argument (and appropriate > fromlen). > read the fine man page! > __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com - 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