[sane-devel] Network protocol implementation

Andre Herms aherms@cs.uni-magdeburg.de
Tue, 26 Feb 2002 13:08:18 +0100


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Hi,

> Hi all,
> I am familiar with one hylafax package in
> which I was able to see network protocol by
> telneting the server "telnet <serverip> 4559"
> & you can enter "HELP" it used to show help.
> I was able to login with "USER" command & so on.
> But I am not getting any such HELP on saned server.
> What are the commands that need to be given so as
> to get the protocol working?
> The listed protocol in documentation contains
> "SANE_NET_CANCEL" etc which doesn't tell how the protocol
> to be implemented.
> Lastly any windows port is available for net backend?
>
> Thanks & regards
> Shailendra

The sane network protocol is no plain text protocol. So you cannot use telnet
to trace it. It is more or less the sun rpc protocol. Nummeric parameters are
transmitted as 4 byte of data, not as string. In the sane documantation you
can find how it is encoded. But don't try to reimplement it by the specs
given in the documentation. They are not up to date anymore.

If you want to use it with windows - it should work. You can get the net
backend code and compile it. At least with cygwin this works and so XSane
runs under windows.

But if you really want to do some more with the protocol - don't waste your
time. It is really ugly and has some bad race conditions and design failures.

Bye
	Andre

- - --
Andre Herms                   mailto:aherms@cs.uni-magdeburg.de
                              http://www.cs.uni-magdeburg.de/~aherms
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8e3qzK/HaDUFBducRAoauAJ9sIerkDRCU4CBY5Lko/mAldHMbeACbBEOm
3heH/Age8FGiry479Zp23bE=
=K8ws
-----END PGP SIGNATURE-----