Unix Programming - UDP Socket Read Question

This is Interesting: Free IT 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, 5:49 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, 5:49 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






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com