kopia lustrzana https://gitlab.com/sane-project/website
65 wiersze
3.5 KiB
HTML
65 wiersze
3.5 KiB
HTML
<!-- received="Fri Apr 3 20:39:02 1998 PST" -->
|
|
<!-- sent="Fri, 3 Apr 1998 20:39:00 -0800" -->
|
|
<!-- name="David Mosberger-Tang" -->
|
|
<!-- email="David.Mosberger@acm.org" -->
|
|
<!-- subject="Re: sane_read returning *len == 0" -->
|
|
<!-- id="199804040439.UAA15005@panda.mostang.com" -->
|
|
<!-- inreplyto="199804030831.AAA01897@panda.mostang.com" -->
|
|
<title>sane-devel: Re: sane_read returning *len == 0</title>
|
|
<h1>Re: sane_read returning *len == 0</h1>
|
|
<b>David Mosberger-Tang</b> (<a href="mailto:David.Mosberger@acm.org"><i>David.Mosberger@acm.org</i></a>)<br>
|
|
<i>Fri, 3 Apr 1998 20:39:00 -0800</i>
|
|
<p>
|
|
<ul>
|
|
<li> <b>Messages sorted by:</b> <a href="date.html#47">[ date ]</a><a href="index.html#47">[ thread ]</a><a href="subject.html#47">[ subject ]</a><a href="author.html#47">[ author ]</a>
|
|
<!-- next="start" -->
|
|
<li> <b>Next message:</b> <a href="0048.html">Hugo van der Kooij: "Re: Problem with Mustek Paragon 600 II SP"</a>
|
|
<li> <b>Previous message:</b> <a href="0046.html">Hardy Pawletta : "Problem with Mustek Paragon 600 II SP"</a>
|
|
<li> <b>In reply to:</b> <a href="0026.html">David Mosberger-Tang: "Re: sane_read returning *len == 0"</a>
|
|
<!-- nextthread="start" -->
|
|
<li> <b>Next in thread:</b> <a href="0068.html">Chris Pinkham: "Re: sane_read returning *len == 0"</a>
|
|
<li> <b>Next in thread:</b> <a href="0038.html">Matto Marjanovic: "Re: sane_read returning *len == 0"</a>
|
|
<li> <b>Reply:</b> <a href="0068.html">Chris Pinkham: "Re: sane_read returning *len == 0"</a>
|
|
<!-- reply="end" -->
|
|
</ul>
|
|
<!-- body="start" -->
|
|
<i>>>>>> On Fri, 3 Apr 1998 13:50:04 -0500 (EST), Matto Marjanovic <<a href="mailto:maddog@mir.com">maddog@mir.com</a>> said:</i><br>
|
|
<p>
|
|
Matto> Doesn't it matter whether or not the IO mode is set to<br>
|
|
Matto> blocking versus non-blocking? The spec states that in<br>
|
|
Matto> blocking mode, sane_read must return at least one byte of<br>
|
|
Matto> data for each call, blocking until it's got at least that one<br>
|
|
Matto> byte to give (otherwise, a front-end would have to keep<br>
|
|
Matto> polling, yuck --- non-blocking mode allows you to do a select<br>
|
|
Matto> on the device and wake up when data arrives).<br>
|
|
<p>
|
|
You're right---I must have been sleeping when searching for this<br>
|
|
clause, as I couldn't find it last night... ;-/<br>
|
|
<p>
|
|
Matto> So, if your backend is doing the simple blocking mode only,<br>
|
|
Matto> it *should* keep reading from from scanner until it has<br>
|
|
Matto> something to return to the frontend.<br>
|
|
<p>
|
|
Right.<br>
|
|
<p>
|
|
--david<br>
|
|
<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">majordomo@mostang.com</a>
|
|
</pre>
|
|
<!-- body="end" -->
|
|
<p>
|
|
<ul>
|
|
<!-- next="start" -->
|
|
<li> <b>Next message:</b> <a href="0048.html">Hugo van der Kooij: "Re: Problem with Mustek Paragon 600 II SP"</a>
|
|
<li> <b>Previous message:</b> <a href="0046.html">Hardy Pawletta : "Problem with Mustek Paragon 600 II SP"</a>
|
|
<li> <b>In reply to:</b> <a href="0026.html">David Mosberger-Tang: "Re: sane_read returning *len == 0"</a>
|
|
<!-- nextthread="start" -->
|
|
<li> <b>Next in thread:</b> <a href="0068.html">Chris Pinkham: "Re: sane_read returning *len == 0"</a>
|
|
<li> <b>Next in thread:</b> <a href="0038.html">Matto Marjanovic: "Re: sane_read returning *len == 0"</a>
|
|
<li> <b>Reply:</b> <a href="0068.html">Chris Pinkham: "Re: sane_read returning *len == 0"</a>
|
|
<!-- reply="end" -->
|
|
</ul>
|