sane-project-website/old-archive/1998-05/0241.html

89 wiersze
4.3 KiB
HTML

<!-- received="Sun May 24 03:12:35 1998 PDT" -->
<!-- sent="Sun, 24 May 1998 09:25:51 +0300 (EET DST)" -->
<!-- name="Firikis Milon" -->
<!-- email="milonf@mbox.ariadne-t.gr" -->
<!-- subject="Re: NT frontend" -->
<!-- id="199805240625.JAA04087@mbox.ariadne-t.gr" -->
<!-- inreplyto="m0ycx7G-0000WyC@charon.beck-sw.de" -->
<title>sane-devel: Re: NT frontend</title>
<h1>Re: NT frontend</h1>
<b>Firikis Milon</b> (<a href="mailto:milonf@mbox.ariadne-t.gr"><i>milonf@mbox.ariadne-t.gr</i></a>)<br>
<i>Sun, 24 May 1998 09:25:51 +0300 (EET DST)</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#241">[ date ]</a><a href="index.html#241">[ thread ]</a><a href="subject.html#241">[ subject ]</a><a href="author.html#241">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0242.html">Fredrick P. Eisele Sr.: "Reverse Engineering"</a>
<li> <b>Previous message:</b> <a href="0240.html">Bob van der Poel: "configure problem solved"</a>
<li> <b>In reply to:</b> <a href="0231.html">becka@rz.uni-duesseldorf.de: "Re: NT frontend"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>
<!-- body="start" -->
<i>&gt; </i><br>
<i>&gt; Hi !</i><br>
<i>&gt; </i><br>
<i>&gt; &gt; Well, if someone will give me the network protocol specification SANE uses</i><br>
<i>&gt; &gt; to talk, writing a TWAIN wrapper to use with a SANE networked scanner will</i><br>
<i>&gt; &gt; suddenly become a higher priority project on my list. Until then it'll will</i><br>
<i>&gt; &gt; have to wait until I feel like reverse engineer the protocol. So far I</i><br>
<i>&gt; &gt; haven't been able to find it in the documentation for SANE anywhere.</i><br>
<i>&gt; </i><br>
<i>&gt; ?? It is in the sane package that can be found on </i><br>
<i>&gt; <a href="http://www.mostang.com/sane">http://www.mostang.com/sane</a>.</i><br>
<i>&gt; </i><br>
<i>&gt; I have checked V 0.72, and it has a subdirectory doc, that contains net.tex</i><br>
<i>&gt; which describes the RPCs that make up the net protocol.</i><br>
<i>&gt; </i><br>
<i>&gt; For an actual implementation reference, see :</i><br>
<i>&gt; </i><br>
<i>&gt; sanei/sanei_codec_ascii.c</i><br>
<i>&gt; sanei/sanei_codec_bin.c</i><br>
<i>&gt; sanei/sanei_net.c</i><br>
<i>&gt; sanei/sanei_wire.c</i><br>
<i>&gt; backend/net.c</i><br>
<i>&gt; frontend/saned.c</i><br>
<i>&gt; </i><br>
<i>&gt; This should provide you with quite enough reference and a bunch of convenience</i><br>
<i>&gt; functions to access the sane net protocol.</i><br>
<i>&gt; </i><br>
<i>&gt; Actually what you need to do, is to rewrite backend/net.c in a way that</i><br>
<i>&gt; it exports a TWAIN interface, or write a SANE-&gt;TWAIN bridge interface</i><br>
<i>&gt; that is simply linked to net.c.</i><br>
<i>&gt; </i><br>
<i>&gt; CU,Andy</i><br>
<i>&gt; </i><br>
<i>&gt; -- </i><br>
<i>&gt; = Andreas Beck | Email : &lt;<a href="mailto:andreas.beck@ggi-project.org">andreas.beck@ggi-project.org</a>&gt; =</i><br>
<i>&gt; </i><br>
<i>&gt; --</i><br>
<i>&gt; Source code, list archive, and docs: <a href="http://www.mostang.com/sane/">http://www.mostang.com/sane/</a></i><br>
<i>&gt; To unsubscribe: echo unsubscribe sane-devel | mail <a href="mailto:majordomo@mostang.com">majordomo@mostang.com</a></i><br>
<i>&gt; </i><br>
I am afraid it won't e so easy. Windows don't have sockets, what they do<br>
have are of course winsockets. The functions are prototyped in winsock.h<br>
and they are similar to Unix/sockets in design but the functions semantics<br>
are not identical.<br>
<p>
So some Unix networking code may be usefull for somebody to see the flow<br>
but he has to port/translate anyway the Unix/sockets calls to Win32/winsock<br>
calls.<br>
Milon<br>
<p>
<p>
<pre>
--
Source code, list archive, and docs: <a href="http://www.mostang.com/sane/">http://www.mostang.com/sane/</a>
To unsubscribe: echo unsubscribe sane-devel | mail <a href="mailto:majordomo@mostang.com">majordomo@mostang.com</a>
</pre>
<!-- body="end" -->
<p>
<ul>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0242.html">Fredrick P. Eisele Sr.: "Reverse Engineering"</a>
<li> <b>Previous message:</b> <a href="0240.html">Bob van der Poel: "configure problem solved"</a>
<li> <b>In reply to:</b> <a href="0231.html">becka@rz.uni-duesseldorf.de: "Re: NT frontend"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>