sane-project-website/old-archive/1997-02/0068.html

77 wiersze
4.0 KiB
HTML

<!-- received="Mon Apr 21 15:09:46 1997 MST" -->
<!-- sent="Tue, 22 Apr 1997 00:02:20 +0200 (MET DST)" -->
<!-- name="Guido Muesch" -->
<!-- email="odiug@faho.rwth-aachen.de" -->
<!-- subject="Connecting SANE and Java?" -->
<!-- id="199704212202.AAA26928@darkstar.faho.rwth-aachen.de" -->
<!-- inreplyto="199704210010.RAA24246@panda.mosberger" -->
<title>sane-devel: Connecting SANE and Java?</title>
<h1>Connecting SANE and Java?</h1>
<b>Guido Muesch</b> (<a href="mailto:odiug@faho.rwth-aachen.de"><i>odiug@faho.rwth-aachen.de</i></a>)<br>
<i>Tue, 22 Apr 1997 00:02:20 +0200 (MET DST)</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#68">[ date ]</a><a href="index.html#68">[ thread ]</a><a href="subject.html#68">[ subject ]</a><a href="author.html#68">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0069.html">David Mosberger-Tang: "Re: Connecting SANE and Java?"</a>
<li> <b>Previous message:</b> <a href="0067.html">David Mosberger-Tang: "Re: sane-0.54 now available!"</a>
<li> <b>In reply to:</b> <a href="0058.html">David Mosberger-Tang: "sane-0.54 now available!"</a>
<!-- nextthread="start" -->
<li> <b>Next in thread:</b> <a href="0069.html">David Mosberger-Tang: "Re: Connecting SANE and Java?"</a>
<li> <b>Maybe reply:</b> <a href="0069.html">David Mosberger-Tang: "Re: Connecting SANE and Java?"</a>
<li> <b>Maybe reply:</b> <a href="0076.html">David Mosberger-Tang: "Re: Connecting SANE and Java?"</a>
<li> <b>Maybe reply:</b> <a href="0081.html">David Mosberger-Tang: "Re: Connecting SANE and Java?"</a>
<!-- reply="end" -->
</ul>
<!-- body="start" -->
Hi again<br>
<p>
I took a short look at the updated documentation, which contains the<br>
network interface now. (Thanx David).<br>
<p>
It seems to me that the netprotocol was designed to closely<br>
resemble the C interface. It is RPC based and I do not know how to use<br>
that from Java (especially the pointer to the devicelist).<br>
<p>
Well I must admit that I do not know much about RPCs. And my experience<br>
with Java is not much more than having written a 'Hello World' program.<br>
<p>
<i>&gt;From what I see the netprotocol does not fit well into Java. Maybe one</i><br>
should write a somehow simpler netinterface on top of the SANE<br>
libraries. Or maybe I have not understood this at all.<br>
<p>
Another idea would be to write a native Java class to provide a direct<br>
interface to SANE, which then could be used to write a (mixed) C/Java<br>
server. This server could be connected to by a 'pure' Java client later.<br>
<p>
Between those two one could use a simple netprotocol or Javas RMI<br>
(Remote Method Invocation), which is Javas replacement for RPCs as far<br>
as I understand this.<br>
<p>
Well, I have really not looked deeper into all of this, and these are<br>
only suggestions. I don't know how many people on the mailinglist are<br>
experienced in Java to give me a hint.<br>
<p>
Ciao<br>
Guido<br>
<p>
<pre>
--
Source code, list archive, and docs: <a href="http://www.azstarnet.com/~axplinux/sane/">http://www.azstarnet.com/~axplinux/sane/</a>
To unsubscribe: mail -s unsubscribe <a href="mailto:sane-devel-request@listserv.azstarnet.com">sane-devel-request@listserv.azstarnet.com</a>
</pre>
<!-- body="end" -->
<p>
<ul>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0069.html">David Mosberger-Tang: "Re: Connecting SANE and Java?"</a>
<li> <b>Previous message:</b> <a href="0067.html">David Mosberger-Tang: "Re: sane-0.54 now available!"</a>
<li> <b>In reply to:</b> <a href="0058.html">David Mosberger-Tang: "sane-0.54 now available!"</a>
<!-- nextthread="start" -->
<li> <b>Next in thread:</b> <a href="0069.html">David Mosberger-Tang: "Re: Connecting SANE and Java?"</a>
<li> <b>Maybe reply:</b> <a href="0069.html">David Mosberger-Tang: "Re: Connecting SANE and Java?"</a>
<li> <b>Maybe reply:</b> <a href="0076.html">David Mosberger-Tang: "Re: Connecting SANE and Java?"</a>
<li> <b>Maybe reply:</b> <a href="0081.html">David Mosberger-Tang: "Re: Connecting SANE and Java?"</a>
<!-- reply="end" -->
</ul>