Re: Q about low lvl UNIX socket programming

From: kuznet@ms2.inr.ac.ru
Date: Fri Apr 28 2000 - 10:23:49 EST


Hello!

> Q: If that can't be done, how can I make send/write write the entire
> message or not at all (iow, do NOT splitt the message) in NONBLOCKing
> mode?

It is impossible for write().

In some unices option SO_SNDLOWAT is implemented, which provides
some protection of partial writes in nonblocking mode setting
threshold, when user prefers to get EAGAIN instead of partial write().
That's all.

It is not implemented in linux and is not a required part of any standard.

Alexey

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Apr 30 2000 - 21:00:15 EST