kopia lustrzana https://gitlab.com/sane-project/website
145 wiersze
4.9 KiB
HTML
145 wiersze
4.9 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: EOF detection</TITLE>
|
|||
|
<META NAME="Author" CONTENT="Marian Eichholz (marian.eichholz@freenet-ag.de)">
|
|||
|
<META NAME="Subject" CONTENT="Re: EOF detection">
|
|||
|
</HEAD>
|
|||
|
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
|
|||
|
<H1>Re: EOF detection</H1>
|
|||
|
<!-- received="Thu May 10 01:40:12 2001" -->
|
|||
|
<!-- isoreceived="20010510084012" -->
|
|||
|
<!-- sent="Thu, 10 May 2001 10:53:59 +0200" -->
|
|||
|
<!-- isosent="20010510085359" -->
|
|||
|
<!-- name="Marian Eichholz" -->
|
|||
|
<!-- email="marian.eichholz@freenet-ag.de" -->
|
|||
|
<!-- subject="Re: EOF detection" -->
|
|||
|
<!-- id="3AFA5727.22605CED@freenet-ag.de" -->
|
|||
|
<!-- inreplyto="20010508202126.A8948@vortex.swb.de" -->
|
|||
|
<STRONG>From:</STRONG> Marian Eichholz (<A HREF="mailto:marian.eichholz@freenet-ag.de?Subject=Re:%20EOF%20detection&In-Reply-To=<3AFA5727.22605CED@freenet-ag.de>"><EM>marian.eichholz@freenet-ag.de</EM></A>)<BR>
|
|||
|
<STRONG>Date:</STRONG> Thu May 10 2001 - 01:53:59 PDT
|
|||
|
<P>
|
|||
|
<!-- next="start" -->
|
|||
|
<LI><STRONG>Next message:</STRONG> <A HREF="0107.html">Marian Eichholz: "Re: EOF detection"</A>
|
|||
|
<UL>
|
|||
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0105.html">Oliver Rauch: "Re: ioperm problem with xsane"</A>
|
|||
|
<LI><STRONG>In reply to:</STRONG> <A HREF="0096.html">Henning Meier-Geinitz: "Re: EOF detection"</A>
|
|||
|
<!-- nextthread="start" -->
|
|||
|
<!-- reply="end" -->
|
|||
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|||
|
<A HREF="date.html#106">[ date ]</A>
|
|||
|
<A HREF="index.html#106">[ thread ]</A>
|
|||
|
<A HREF="subject.html#106">[ subject ]</A>
|
|||
|
<A HREF="author.html#106">[ author ]</A>
|
|||
|
</UL>
|
|||
|
<HR NOSHADE><P>
|
|||
|
<!-- body="start" -->
|
|||
|
<P>
|
|||
|
Henning Meier-Geinitz wrote:
|
|||
|
<BR>
|
|||
|
<EM>>
|
|||
|
</EM><BR>
|
|||
|
<EM>> Hi,
|
|||
|
</EM><BR>
|
|||
|
<EM>>
|
|||
|
</EM><BR>
|
|||
|
<EM>> On Tue, May 08, 2001 at 06:01:47PM +0200, Oliver Rauch wrote:
|
|||
|
</EM><BR>
|
|||
|
<EM>> > > "The number of bytes returned is stored in *len. A backend must set
|
|||
|
</EM><BR>
|
|||
|
<EM>> > > this to zero when the call fails (i.e., when a status other
|
|||
|
</EM><BR>
|
|||
|
<EM>> > > than SANE_STATUS_GOOD is returned)"
|
|||
|
</EM><BR>
|
|||
|
<EM>> > >
|
|||
|
</EM><BR>
|
|||
|
<EM>> > > So you can't return data if you don't return SANE_STATUS_GOOD.
|
|||
|
</EM><BR>
|
|||
|
<EM>> >
|
|||
|
</EM><BR>
|
|||
|
<EM>> > Yes, but you also can argue that SANE_STATUS_EOF is not a failure,
|
|||
|
</EM><BR>
|
|||
|
<EM>> > only the info that there is no more data than returned by
|
|||
|
</EM><BR>
|
|||
|
<EM>> > this sane_read command.
|
|||
|
</EM><BR>
|
|||
|
<EM>>
|
|||
|
</EM><BR>
|
|||
|
<EM>> Depends on what "i.e." is supposed to mean.
|
|||
|
</EM><BR>
|
|||
|
<P>:-) Point.
|
|||
|
<BR>
|
|||
|
<P><EM>>
|
|||
|
</EM><BR>
|
|||
|
<EM>> > It does not hurt to mention it explictly.
|
|||
|
</EM><BR>
|
|||
|
<EM>>
|
|||
|
</EM><BR>
|
|||
|
<EM>> I think that's more clear:
|
|||
|
</EM><BR>
|
|||
|
<EM>>
|
|||
|
</EM><BR>
|
|||
|
<EM>> The number of bytes returned is stored in *len. A backend must set
|
|||
|
</EM><BR>
|
|||
|
<EM>> this to zero when a status other than SANE_STATUS_GOOD is returned.
|
|||
|
</EM><BR>
|
|||
|
<EM>>
|
|||
|
</EM><BR>
|
|||
|
<EM>> Is this clear enough or should we add another sentence concerning
|
|||
|
</EM><BR>
|
|||
|
<EM>> SANE_STATUS_EOF (in addition to "SANE_STATUS_EOF: No more data is
|
|||
|
</EM><BR>
|
|||
|
<EM>> available for the current frame.")?
|
|||
|
</EM><BR>
|
|||
|
<P>If You say "No data is available in this frame" it will be more
|
|||
|
<BR>
|
|||
|
precisely, because de facto there must not be any data transferred in
|
|||
|
<BR>
|
|||
|
the call reporting SANE_STATUS_EOF.
|
|||
|
<BR>
|
|||
|
<P>Or even more clearly and concisely stated:
|
|||
|
<BR>
|
|||
|
<P> A backend must not transfer data, if it returns SANE_STATUS_EOF.
|
|||
|
<BR>
|
|||
|
<P><P><P><PRE>
|
|||
|
--
|
|||
|
Mit freundlichen Gruessen / Yours sincerely
|
|||
|
<P>Marian Eichholz
|
|||
|
<P>- - - - - - - - - - -
|
|||
|
Marian Eichholz
|
|||
|
Postmaster
|
|||
|
freenet.de AG Vorsitzender des Aufsichtsrates: Gerhard Schmid
|
|||
|
Deelb<EFBFBD>genkamp 4c Vorstand: Eckhard Spoerr (Vors.), Axel Krieger
|
|||
|
22297 Hamburg Amtsgericht Hamburg, HRB 74048
|
|||
|
<P>--
|
|||
|
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:%20EOF%20detection&In-Reply-To=<3AFA5727.22605CED@freenet-ag.de>">majordomo@mostang.com</A>
|
|||
|
</PRE>
|
|||
|
<P><!-- body="end" -->
|
|||
|
<HR NOSHADE>
|
|||
|
<UL>
|
|||
|
<!-- next="start" -->
|
|||
|
<LI><STRONG>Next message:</STRONG> <A HREF="0107.html">Marian Eichholz: "Re: EOF detection"</A>
|
|||
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0105.html">Oliver Rauch: "Re: ioperm problem with xsane"</A>
|
|||
|
<LI><STRONG>In reply to:</STRONG> <A HREF="0096.html">Henning Meier-Geinitz: "Re: EOF detection"</A>
|
|||
|
<!-- nextthread="start" -->
|
|||
|
<!-- reply="end" -->
|
|||
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|||
|
<A HREF="date.html#106">[ date ]</A>
|
|||
|
<A HREF="index.html#106">[ thread ]</A>
|
|||
|
<A HREF="subject.html#106">[ subject ]</A>
|
|||
|
<A HREF="author.html#106">[ 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>Thu May 10 2001 - 02:04:21 PDT</EM>
|
|||
|
</EM>
|
|||
|
</SMALL>
|
|||
|
</BODY>
|
|||
|
</HTML>
|