sane-project-website/old-archive/2001-01/0146.html

134 wiersze
4.7 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>
<TITLE>sane-devel: Re: SANE standard / get_select_fd / sane_read</TITLE>
<META NAME="Author" CONTENT="Christian Nassau (nassau@math.uni-frankfurt.de)">
<META NAME="Subject" CONTENT="Re: SANE standard / get_select_fd / sane_read">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: SANE standard / get_select_fd / sane_read</H1>
<!-- received="Mon Jan 15 03:49:26 2001" -->
<!-- isoreceived="20010115114926" -->
<!-- sent="Mon, 15 Jan 2001 12:48:02 +0100" -->
<!-- isosent="20010115114802" -->
<!-- name="Christian Nassau" -->
<!-- email="nassau@math.uni-frankfurt.de" -->
<!-- subject="Re: SANE standard / get_select_fd / sane_read" -->
<!-- id="200101151148.MAA20298@newton.math.uni-frankfurt.de" -->
<!-- inreplyto="3A5C98F7.AFB25619@wolfsburg.de" -->
<STRONG>From:</STRONG> Christian Nassau (<A HREF="mailto:nassau@math.uni-frankfurt.de?Subject=Re:%20SANE%20standard%20/%20get_select_fd%20/%20sane_read&In-Reply-To=&lt;200101151148.MAA20298@newton.math.uni-frankfurt.de&gt;"><EM>nassau@math.uni-frankfurt.de</EM></A>)<BR>
<STRONG>Date:</STRONG> Mon Jan 15 2001 - 03:48:02 PST
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0147.html">Christian Nassau: "Re: snapscan"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0145.html">David Mosberger-Tang: "test"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0113.html">Oliver Rauch: "Re: SANE standard / get_select_fd / sane_read"</A>
<!-- nextthread="start" -->
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#146">[ date ]</A>
<A HREF="index.html#146">[ thread ]</A>
<A HREF="subject.html#146">[ subject ]</A>
<A HREF="author.html#146">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Hello Oliver,
<BR>
<P>thanks for your remarks on the subject. I've come to accept
<BR>
that a frontend may request any number of bytes. However,
<BR>
I would still insist that deadlocks (in non-blocking mode)
<BR>
are inherent in the current standard.
<BR>
<P>Your reply to this was
<BR>
&nbsp;
<BR>
<EM>&gt; Wrong.
</EM><BR>
<EM>&gt; Non Blocking mode means that the backend may return with 0 bytes
</EM><BR>
<EM>&gt; transfered (because it has no data in the moment and it returns
</EM><BR>
<EM>&gt; to give the frontend the chance to react to user action, refresh display
</EM><BR>
<EM>&gt; etc.)
</EM><BR>
<P>I think this is inconsistent. Either say
<BR>
<P><EM>&gt; Right.
</EM><BR>
<EM>&gt; Non Blocking mode means that the backend may return with 0 bytes
</EM><BR>
<EM>&gt; transfered (plus some comments that I may ignore, since they only
</EM><BR>
<EM>&gt; refelct the presumed intention of the specs)
</EM><BR>
<P>or
<BR>
<P><EM>&gt; Wrong.
</EM><BR>
<EM>&gt; In non blocking mode the backend may only return with 0 bytes
</EM><BR>
<EM>&gt; transfered if it has no data available at the moment.
</EM><BR>
<P>In my reading this last version would be either wrong or tautological,
<BR>
(but essentially (or substantially?) wrong.)
<BR>
<P>Our difference of reading could be this: the notion of &quot;having
<BR>
data available&quot; is nowhere made precise in the SANE specification,
<BR>
so I take it to be essentially tautological: a backend had data
<BR>
available (by definition) if a call to sane_read transferred at
<BR>
least one byte.
<BR>
<P>I still think the sane_read specification ought to be changed.
<BR>
For this, see the reply to Henning Meier-Geinitz' message,
<BR>
which I'll write next,
<BR>
<P>Christian
<BR>
<P><P><P><P><PRE>
--
Source code, list archive, and docs: <A HREF="http://www.mostang.com/sane/">http://www.mostang.com/sane/</A>
To unsubscribe: echo unsubscribe sane-devel | mail <A HREF="mailto:majordomo@mostang.com?Subject=Re:%20SANE%20standard%20/%20get_select_fd%20/%20sane_read&In-Reply-To=&lt;200101151148.MAA20298@newton.math.uni-frankfurt.de&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0147.html">Christian Nassau: "Re: snapscan"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0145.html">David Mosberger-Tang: "test"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0113.html">Oliver Rauch: "Re: SANE standard / get_select_fd / sane_read"</A>
<!-- nextthread="start" -->
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#146">[ date ]</A>
<A HREF="index.html#146">[ thread ]</A>
<A HREF="subject.html#146">[ subject ]</A>
<A HREF="author.html#146">[ author ]</A>
</UL>
<!-- trailer="footer" -->
<HR NOSHADE>
<P>
<SMALL>
<EM>
This archive was generated by <A HREF="http://www.hypermail.org/">hypermail 2b29</A>
: <EM>Mon Jan 15 2001 - 03:51:12 PST</EM>
</EM>
</SMALL>
</BODY>
</HTML>