I took a short look at the updated documentation, which contains the
network interface now. (Thanx David).
It seems to me that the netprotocol was designed to closely
resemble the C interface. It is RPC based and I do not know how to use
that from Java (especially the pointer to the devicelist).
Well I must admit that I do not know much about RPCs. And my experience
with Java is not much more than having written a 'Hello World' program.
>From what I see the netprotocol does not fit well into Java. Maybe one
should write a somehow simpler netinterface on top of the SANE
libraries. Or maybe I have not understood this at all.
Another idea would be to write a native Java class to provide a direct
interface to SANE, which then could be used to write a (mixed) C/Java
server. This server could be connected to by a 'pure' Java client later.
Between those two one could use a simple netprotocol or Javas RMI
(Remote Method Invocation), which is Javas replacement for RPCs as far
as I understand this.
Well, I have really not looked deeper into all of this, and these are
only suggestions. I don't know how many people on the mailinglist are
experienced in Java to give me a hint.
-- Source code, list archive, and docs: http://www.azstarnet.com/~axplinux/sane/ To unsubscribe: mail -s unsubscribe firstname.lastname@example.org