kopia lustrzana https://gitlab.com/sane-project/website
62 wiersze
3.0 KiB
HTML
62 wiersze
3.0 KiB
HTML
<!-- received="Tue Jul 21 09:21:14 1998 PDT" -->
|
||
<!-- sent="Tue, 21 Jul 1998 17:00:23 +0100 (BST)" -->
|
||
<!-- name="Jon Knight" -->
|
||
<!-- email="jon@net.lut.ac.uk" -->
|
||
<!-- subject="Re: developing plustek driver-- questions" -->
|
||
<!-- id="" -->
|
||
<!-- inreplyto="Pine.BSF.4.00.9807201328030.22329-100000@weevil.nac.net" -->
|
||
<title>sane-devel: Re: developing plustek driver-- questions</title>
|
||
<h1>Re: developing plustek driver-- questions</h1>
|
||
<b>Jon Knight</b> (<a href="mailto:jon@net.lut.ac.uk"><i>jon@net.lut.ac.uk</i></a>)<br>
|
||
<i>Tue, 21 Jul 1998 17:00:23 +0100 (BST)</i>
|
||
<p>
|
||
<ul>
|
||
<li> <b>Messages sorted by:</b> <a href="date.html#111">[ date ]</a><a href="index.html#111">[ thread ]</a><a href="subject.html#111">[ subject ]</a><a href="author.html#111">[ author ]</a>
|
||
<!-- next="start" -->
|
||
<li> <b>Next message:</b> <a href="0112.html">Alessandro Russo: "sane-epson driver & ava-1505"</a>
|
||
<li> <b>Previous message:</b> <a href="0110.html">Dr. Andreas Bolsch: "Re: Mustek ScanExpress Backend"</a>
|
||
<!-- nextthread="start" -->
|
||
<!-- reply="end" -->
|
||
</ul>
|
||
<!-- body="start" -->
|
||
On Mon, 20 Jul 1998, Antal Novak wrote:<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>
|
||
<p>
|
||
My thoughts on this part was to make a loadable kernel module for the<br>
|
||
parallel port low level driver which could then have its port address<br>
|
||
default to 0x378 but also have a different port address passed in on the<br>
|
||
command line. Of course this ties the solution down to Linux (in my case<br>
|
||
- I've not got a FreeBSD box so I don't know if they can support loadable<br>
|
||
kernel modules or not). The SANE code then talks to this low level,<br>
|
||
platform dependant code using /dev/scanner or /dev/plustek.<br>
|
||
<p>
|
||
Tatty bye,<br>
|
||
<p>
|
||
Jim'll<br>
|
||
<p>
|
||
#!/usr/bin/perl -- -Whois++-client-in-6-lines-of-Perl -Beat-that-Z39.50! <br>
|
||
use IO::Socket;sub w{$f=shift;$a{$f}=1;($h,$p,$q)=split("/",$f);$s=<br>
|
||
IO::Socket::INET->new(PeerAddr=>"$h:$p")||return;print $s "$q\r\n";while(<$s>)<br>
|
||
{next if(/^%/);if(/^# SERVER-TO-ASK/){while(<$s>){$x=$1 if/Name: (.*)\r\n$/;$y<br>
|
||
=$1 if/Port: (.*)\r\n$/;$f="$x/$y/$q";@j=(@j,$f)if(/^# END/&&!$a{$f})}}else{<br>
|
||
print}}close($s)}@j=shift;while(@j){w(pop(@j))}# whois++.pl host/port/query<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="0112.html">Alessandro Russo: "sane-epson driver & ava-1505"</a>
|
||
<li> <b>Previous message:</b> <a href="0110.html">Dr. Andreas Bolsch: "Re: Mustek ScanExpress Backend"</a>
|
||
<!-- nextthread="start" -->
|
||
<!-- reply="end" -->
|
||
</ul>
|