For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > October 2004 > UDP Socket Read Question









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author UDP Socket Read Question
Alkaline

2004-10-30, 3:56 pm

I've been trying to find this on the net through constant googling but
I can't. Does a read() call (or any receive call for that matter) on a
udp socket read at most 1 udp packet or will it read potentially
several? Anyone know where to find documentation on this?

Thank you.
Barry Margolin

2004-10-30, 8:56 pm

In article <c625796a.0410301107.6a741c16@posting.google.com>,
alkaline57@yahoo.com (Alkaline) wrote:

> I've been trying to find this on the net through constant googling but
> I can't. Does a read() call (or any receive call for that matter) on a
> udp socket read at most 1 udp packet or will it read potentially
> several? Anyone know where to find documentation on this?


It will read at most 1 packet. I expect this is mentioned somewhere in
Unix Network Programming -- if you're doing any significant amount of
socket programming, you really should have this book.

--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com