On Thu, 21 Aug 2003 15:02:26 -0500
"Lee Chin" <[EMAIL PROTECTED]> wrote:

> This sort  of helps... my question is with respect to UDP sockets, for sendto and 
> recvfrom, can I concurrently have two threads at the same time write (sendto) on a 
> same file descriptor?  How about readfrom and sendt on the same file descriptor at 
> the same time?

Yes, but assume two threads A (writes a one message containing "aaaa") 
and B which (writes two messages "b" and "c").

You can be assured that B's data won't show up inside A's message:
        ie. never aabaa
but you can not assume anything about the order they will be received.

If you want more detail read the book.
 W. Richard Stevens, UNIX network programming, Volume 1

http://www.kohala.com/start/
-
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

Reply via email to