Re: [wmii] libixp adding 24 trailing NUL bytes to Rread?

From: Kris Maglione <jg_AT_suckless.org>
Date: Thu, 31 Jan 2008 07:06:52 -0500

On Wed, Jan 30, 2008 at 11:49:45PM -0800, Suraj N. Kurapati wrote:
>Rumai does respect iounit (stops sending Tread when count < iounit).

No, no, no! You have message size and iounit confused. You only
learn the iounit when you open a file, not when you initiate a
connection, and it *must* be less than the message size. libixp,
by default, makes it 24 bytes smaller, because that fits read
and write headers. It can also be zero, in which case, you have
to make up your own. Nevertheless, the count in a read request
*must* be less than the message size minus the size of the other
fields.

-- 
Kris Maglione
The total behavior of large systems cannot be predicted.
PGP: http://suckless.org/~jg/pubkey.pgp
SHA1 (pubkey.pgp) = 2d464f9dbb186bee6f4faa88e2f6c5802bcfd935

Received on Thu Jan 31 2008 - 13:07:25 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:35:45 UTC