[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20080921.212724.193719407.davem@davemloft.net>
Date: Sun, 21 Sep 2008 21:27:24 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: johnpol@....mipt.ru
Cc: johaahn@...il.com, netdev@...r.kernel.org
Subject: Re: [PATCH] sendfile() and UDP socket
From: Evgeniy Polyakov <johnpol@....mipt.ru>
Date: Mon, 22 Sep 2008 08:19:29 +0400
> Stream socket means that whatever data we put to it, it will become
> completely boundary-free, in that regard, that receiving side will not
> be able to get original sending packet sizes (without too much efforts).
Right.
> Datagram just preservs the boundaries and that's what we have with this
> patch.
Not exactly.
Each and every send() operation on a datagram socket must result in
exactly one packet. sendfile() was following this rule, when it
returned successfully only one single packet was emitted.
The new sendfile() semantics are outside of this model.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists