sane-project-website/old-archive/1998-07/0116.html

90 wiersze
4.5 KiB
HTML
Czysty Wina Historia

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

<!-- received="Tue Jul 21 13:12:35 1998 PDT" -->
<!-- sent="Tue, 21 Jul 1998 16:12:54 -0400 (EDT)" -->
<!-- name="Antal Novak" -->
<!-- email="afn@weevil.net" -->
<!-- subject="Re: developing plustek driver-- questions" -->
<!-- id="" -->
<!-- inreplyto="Pine.SUN.3.95.980721165530.20748J-100000@weeble.lut.ac.uk" -->
<title>sane-devel: Re: developing plustek driver-- questions</title>
<h1>Re: developing plustek driver-- questions</h1>
<b>Antal Novak</b> (<a href="mailto:afn@weevil.net"><i>afn@weevil.net</i></a>)<br>
<i>Tue, 21 Jul 1998 16:12:54 -0400 (EDT)</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#116">[ date ]</a><a href="index.html#116">[ thread ]</a><a href="subject.html#116">[ subject ]</a><a href="author.html#116">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0117.html">Matto Marjanovic: "Re: shmem in backends?"</a>
<li> <b>Previous message:</b> <a href="0115.html">irvin@mail.atlantic-line.fr: "RE: sane-epson driver &amp; ava-1505"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>
<!-- body="start" -->
I don't like low-level OS-dependent... I've got FreeBSD and Linux, and I'm<br>
sure many others use different OSes; it would be too hard to develop<br>
low-level drivers for every OS. It's much simpler to have to manually<br>
specify an I/O port (and in the future, it might be auto-detectable)...<br>
<p>
Antal Novak<br>
Weevil Systems Programming Enterprises<br>
<a href="mailto:afn@weevil.net">afn@weevil.net</a><br>
<a href="http://www.weevil.net">http://www.weevil.net</a><br>
<p>
"It took only 6 days for God to make world;<br>
Why is it taking me twice as long in FreeBSD?"<br>
&lt;w0lf&gt; from #FreeBSD<br>
<p>
I searched for my Soul, but found it nowhere...<br>
I searched for God, but found him nowhere...<br>
I searched for my Brother, and found all Three.<br>
<p>
Ancient Chinese Proverb<br>
<p>
On Tue, 21 Jul 1998, Jon Knight wrote:<br>
<p>
<i>&gt; On Mon, 20 Jul 1998, Antal Novak wrote:</i><br>
<i>&gt; &gt; Also, for parallel port scanners, how should a backend determine the port</i><br>
<i>&gt; &gt; to use for the scanner? Although 0x378 is all but standard, I would like</i><br>
<i>&gt; &gt; to make this as portable as possible. Should it simply read that from its</i><br>
<i>&gt; &gt; config file, I wonder?</i><br>
<i>&gt; </i><br>
<i>&gt; My thoughts on this part was to make a loadable kernel module for the</i><br>
<i>&gt; parallel port low level driver which could then have its port address</i><br>
<i>&gt; default to 0x378 but also have a different port address passed in on the</i><br>
<i>&gt; command line. Of course this ties the solution down to Linux (in my case</i><br>
<i>&gt; - I've not got a FreeBSD box so I don't know if they can support loadable</i><br>
<i>&gt; kernel modules or not). The SANE code then talks to this low level,</i><br>
<i>&gt; platform dependant code using /dev/scanner or /dev/plustek.</i><br>
<i>&gt; </i><br>
<i>&gt; Tatty bye,</i><br>
<i>&gt; </i><br>
<i>&gt; Jim'll</i><br>
<i>&gt; </i><br>
<i>&gt; #!/usr/bin/perl -- -Whois++-client-in-6-lines-of-Perl -Beat-that-Z39.50! </i><br>
<i>&gt; use IO::Socket;sub w{$f=shift;$a{$f}=1;($h,$p,$q)=split("/",$f);$s=</i><br>
<i>&gt; IO::Socket::INET-&gt;new(PeerAddr=&gt;"$h:$p")||return;print $s "$q\r\n";while(&lt;$s&gt;)</i><br>
<i>&gt; {next if(/^%/);if(/^# SERVER-TO-ASK/){while(&lt;$s&gt;){$x=$1 if/Name: (.*)\r\n$/;$y</i><br>
<i>&gt; =$1 if/Port: (.*)\r\n$/;$f="$x/$y/$q";@j=(@j,$f)if(/^# END/&amp;&amp;!$a{$f})}}else{</i><br>
<i>&gt; print}}close($s)}@j=shift;while(@j){w(pop(@j))}# whois++.pl host/port/query</i><br>
<i>&gt; </i><br>
<i>&gt; </i><br>
<i>&gt; --</i><br>
<i>&gt; Source code, list archive, and docs: <a href="http://www.mostang.com/sane/">http://www.mostang.com/sane/</a></i><br>
<i>&gt; To unsubscribe: echo unsubscribe sane-devel | mail <a href="mailto:majordomo@mostang.com">majordomo@mostang.com</a></i><br>
<i>&gt; </i><br>
<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">majordomo@mostang.com</a>
</pre>
<!-- body="end" -->
<p>
<ul>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0117.html">Matto Marjanovic: "Re: shmem in backends?"</a>
<li> <b>Previous message:</b> <a href="0115.html">irvin@mail.atlantic-line.fr: "RE: sane-epson driver &amp; ava-1505"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>