kopia lustrzana https://gitlab.com/sane-project/website
90 wiersze
4.5 KiB
HTML
90 wiersze
4.5 KiB
HTML
<!-- 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 & 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>
|
||
<w0lf> 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>> On Mon, 20 Jul 1998, Antal Novak wrote:</i><br>
|
||
<i>> > Also, for parallel port scanners, how should a backend determine the port</i><br>
|
||
<i>> > to use for the scanner? Although 0x378 is all but standard, I would like</i><br>
|
||
<i>> > to make this as portable as possible. Should it simply read that from its</i><br>
|
||
<i>> > config file, I wonder?</i><br>
|
||
<i>> </i><br>
|
||
<i>> My thoughts on this part was to make a loadable kernel module for the</i><br>
|
||
<i>> parallel port low level driver which could then have its port address</i><br>
|
||
<i>> default to 0x378 but also have a different port address passed in on the</i><br>
|
||
<i>> command line. Of course this ties the solution down to Linux (in my case</i><br>
|
||
<i>> - I've not got a FreeBSD box so I don't know if they can support loadable</i><br>
|
||
<i>> kernel modules or not). The SANE code then talks to this low level,</i><br>
|
||
<i>> platform dependant code using /dev/scanner or /dev/plustek.</i><br>
|
||
<i>> </i><br>
|
||
<i>> Tatty bye,</i><br>
|
||
<i>> </i><br>
|
||
<i>> Jim'll</i><br>
|
||
<i>> </i><br>
|
||
<i>> #!/usr/bin/perl -- -Whois++-client-in-6-lines-of-Perl -Beat-that-Z39.50! </i><br>
|
||
<i>> use IO::Socket;sub w{$f=shift;$a{$f}=1;($h,$p,$q)=split("/",$f);$s=</i><br>
|
||
<i>> IO::Socket::INET->new(PeerAddr=>"$h:$p")||return;print $s "$q\r\n";while(<$s>)</i><br>
|
||
<i>> {next if(/^%/);if(/^# SERVER-TO-ASK/){while(<$s>){$x=$1 if/Name: (.*)\r\n$/;$y</i><br>
|
||
<i>> =$1 if/Port: (.*)\r\n$/;$f="$x/$y/$q";@j=(@j,$f)if(/^# END/&&!$a{$f})}}else{</i><br>
|
||
<i>> print}}close($s)}@j=shift;while(@j){w(pop(@j))}# whois++.pl host/port/query</i><br>
|
||
<i>> </i><br>
|
||
<i>> </i><br>
|
||
<i>> --</i><br>
|
||
<i>> Source code, list archive, and docs: <a href="http://www.mostang.com/sane/">http://www.mostang.com/sane/</a></i><br>
|
||
<i>> To unsubscribe: echo unsubscribe sane-devel | mail <a href="mailto:majordomo@mostang.com">majordomo@mostang.com</a></i><br>
|
||
<i>> </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 & ava-1505"</a>
|
||
<!-- nextthread="start" -->
|
||
<!-- reply="end" -->
|
||
</ul>
|