Re: NT frontend
Firikis Milon (milonf@mbox.ariadne-t.gr)
Sun, 24 May 1998 09:25:51 +0300 (EET DST)
>
> Hi !
>
> > Well, if someone will give me the network protocol specification SANE uses
> > to talk, writing a TWAIN wrapper to use with a SANE networked scanner will
> > suddenly become a higher priority project on my list. Until then it'll will
> > have to wait until I feel like reverse engineer the protocol. So far I
> > haven't been able to find it in the documentation for SANE anywhere.
>
> ?? It is in the sane package that can be found on
> http://www.mostang.com/sane.
>
> I have checked V 0.72, and it has a subdirectory doc, that contains net.tex
> which describes the RPCs that make up the net protocol.
>
> For an actual implementation reference, see :
>
> sanei/sanei_codec_ascii.c
> sanei/sanei_codec_bin.c
> sanei/sanei_net.c
> sanei/sanei_wire.c
> backend/net.c
> frontend/saned.c
>
> This should provide you with quite enough reference and a bunch of convenience
> functions to access the sane net protocol.
>
> Actually what you need to do, is to rewrite backend/net.c in a way that
> it exports a TWAIN interface, or write a SANE->TWAIN bridge interface
> that is simply linked to net.c.
>
> CU,Andy
>
> --
> = Andreas Beck | Email : <andreas.beck@ggi-project.org> =
>
> --
> Source code, list archive, and docs: http://www.mostang.com/sane/
> To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com
>
I am afraid it won't e so easy. Windows don't have sockets, what they do
have are of course winsockets. The functions are prototyped in winsock.h
and they are similar to Unix/sockets in design but the functions semantics
are not identical.
So some Unix networking code may be usefull for somebody to see the flow
but he has to port/translate anyway the Unix/sockets calls to Win32/winsock
calls.
Milon
--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com