<div dir="ltr">Thanks.<br><br>I&#39;ve done some research but seems that AMP does not have any C or CPP implementation.<br><br>As described in this thread, the python implementation of Google Buffer is not very mature, that&#39;s why I have gave it up.<br>
<br><a href="https://groups.google.com/group/protobuf/browse_thread/thread/9acb7638e1f5ff61/2fc640fd1d3f98b8?lnk=gst&amp;q=python">https://groups.google.com/group/protobuf/browse_thread/thread/9acb7638e1f5ff61/2fc640fd1d3f98b8?lnk=gst&amp;q=python</a><br>
<br>I think I shall try to make ICE work with twisted, although thread synchronization might be a problem.<br><br>BTW : If you are interested in RPC, have a look at<br><br><a href="http://zeroc.com/ice.html">http://zeroc.com/ice.html</a><br>
<br><br><div class="gmail_quote">On Mon, Jul 21, 2008 at 9:18 PM, David Ripton &lt;<a href="mailto:dripton@ripton.net">dripton@ripton.net</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On 2008.07.21 15:01:49 +0800, Peter Cai wrote:<br>
&gt; I&#39;m looking for an RPC system working with twisted.<br>
&gt;<br>
&gt; 1. Binary. &nbsp;I want it run faster than any xml based RPC.<br>
&gt;<br>
&gt; 2. Bidirectional. &nbsp;Unlike &nbsp;HTTP, on which the client has to poll the sever<br>
&gt; for events, the server should &quot;call&quot; the client&#39;s method to notify events.<br>
&gt;<br>
&gt; 3. C/Python support. &nbsp;Part of the system shall be written in C.<br>
&gt;<br>
&gt; 4. Could easily integrated &nbsp;with twisted.<br>
<br>
</div>Twisted AMP meets all your requirements except C support, which you<br>
could probably add. &nbsp;(Or maybe avoid adding by using some other way<br>
to bridge C computing code with Python network code, like ctypes.)<br>
<br>
Also take a look at Google&#39;s Protocol Buffers, which lacks C support but<br>
has C++ support. &nbsp;A Twisted version called txprotobuf was recently<br>
announced. &nbsp;(Note that Protocol Buffers isn&#39;t really a full RPC system,<br>
just the serialization part.)<br>
<br>
I think combining these two might work nicely, though I haven&#39;t tried it<br>
yet.<br>
<font color="#888888"><br>
--<br>
David Ripton &nbsp; &nbsp;<a href="mailto:dripton@ripton.net">dripton@ripton.net</a><br>
<br>
_______________________________________________<br>
Twisted-Python mailing list<br>
<a href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>当只有一张纸和一支笔的时候, 我相信你写下的东西对你来说就是真实的, 不管他们到底是不是真的。
</div>