From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4af0037323b00537481a99c1f57e5196@collyer.net> To: 9fans@cse.psu.edu Subject: Re: [9fans] Rstat needs three size fields? From: Geoff Collyer In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Mon, 7 Jul 2003 13:54:51 -0700 Topicbox-Message-UUID: ed1e011a-eacb-11e9-9e20-41e7f4b1d025 > and when you issued a 2^10 byte read and receive 318 bytes back, > > how would you represent the return count? It was a joke suggestion, but obviously only the length fields in the requests could be encoded as binary logarithms, the responses would need ordinary integer length fields not only for short reads (and writes, in error cases) but to represent values such as 0 and -1. Clearly, simple protocols are the right way to go.