Date: Mon, 18 Nov 1996 16:02:11 +0900 (JST) From: Michael Hancock <michaelh@cet.co.jp> To: Bill Fenner <fenner@parc.xerox.com> Cc: Terry Lambert <terry@lambert.org>, scrappy@ki.net, jdp@polstra.com, hackers@FreeBSD.org Subject: Re: Sockets question... Message-ID: <Pine.SV4.3.95.961118153010.8195A-100000@parkplace.cet.co.jp> In-Reply-To: <96Nov15.113305pst.177557@crevenia.parc.xerox.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 15 Nov 1996, Bill Fenner wrote:
> 4.4BSD introduced the MSG_WAITALL flag, so if you use recv() or any of its
> friends you can ask for your whole request to be performed. This is, of
> course, not portable, and MSG_WAITALL won't even do the trick if your
> request is larger than the socket's high water mark (e.g. SO_RECVBUF).
>
UnixWare 2.1.1 now supports this, I'll have to check Solaris. Maybe it's
more portable than you think.
>From the man pages ...
MSG_WAITALL
Block until the full amount of requested data can be
returned. May return a smaller amount of data if a
signal is caught,the connection is terminated or an
error is pending for the socket.
Regards,
Mike Hancock
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SV4.3.95.961118153010.8195A-100000>
