Re: Connecting SANE and Java?

David Mosberger-Tang (davidm@azstarnet.com)
Tue, 22 Apr 1997 17:43:26 -0700

>>>>> On Tue, 22 Apr 1997 16:47:52 -0700, Jeremy Rosenberger <mustang@henge1.henge.com> said:

Jeremy> RMI is like RPC in the sense that both are used to invoke
Jeremy> methods remotely, but that's about where the similarity
Jeremy> ends--RPC and RMI are not compatible. Furthermore, RMI is a
Jeremy> Java-only protocol, so it can only be used to connect Java
Jeremy> to Java. The way I see it, your options are these (and maybe
Jeremy> I'm missing a couple):

Confusion alert!

RPC != Sun RPC

RPC simply stands for Remote Procedure Call. RMI is one RPC
implementation, Sun RPC another, and SANE RPC a third.
Implementation-wise, SANE RPC has nothing in common with Sun RPC.

To get SANE support in Java, somebody has to write the equivalent of
sanei_wire.c and sanei_net.c. You'll find that the implementation
strategy is indeed patterened after Sun RPC, but SANE RPC is a much
simpler since it doesn't have to be able to support arbitrary C
types---just the ones needed by SANE.

--david

PS: Please read doc/net.tex for info on the SANE network protocol.

--
Source code, list archive, and docs: http://www.azstarnet.com/~axplinux/sane/
To unsubscribe: mail -s unsubscribe sane-devel-request@listserv.azstarnet.com