Re: [Newbie] send() blocks or not

From: Barry Margolin (barry.margolin_at_level3.com)
Date: 08/28/03


Date: Thu, 28 Aug 2003 15:40:10 GMT

In article <3F4D8264.997609B0@adcc.alcatel.be>,
Senthilraja <senthil.raja@adcc.alcatel.be> wrote:
>Solaris man page says that send() blocks (provided, the socket option is not
>set to non-blocking) until all the bytes are written to the send buffer.
>
>However, in a tutorial document found in the web it is mentioned that send()
>is non-blocking and returns the number of bytes it managed to send. So, this
>document nust be wrong then.

Yes, the tutorial is wrong.

-- 
Barry Margolin, barry.margolin@level3.com
Level(3), Woburn, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.