<br>Hi,<br><br>first of all sorry for my delayed answer.<br><br><br><div class="gmail_quote">On Mon, Jan 26, 2009 at 4:26 PM, Jean-Paul Calderone <span dir="ltr">&lt;<a href="mailto:exarkun@divmod.com">exarkun@divmod.com</a>&gt;</span> 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 Thu, 22 Jan 2009 09:14:48 +0100, Alessio Pace &lt;<a href="mailto:alessio.pace@gmail.com" target="_blank">alessio.pace@gmail.com</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;">
Hi,<br>
<br>
recently I was asked if it would be possible to plug a Java protocol in a<br>
Twisted-based P2P library I&#39;m working on.<br>
<br>
Up to now this heterogenous languages integration was not a concern, but<br>
apparently the possibility to write an high level protocol in Java for<br>
external developers seem to become very important and would otherwise block<br>
their choice in using the library..<br>
</blockquote>
<br></div>
Can you clarify what you&#39;re after? &nbsp;Does plugging in a &quot;Java protocol&quot; mean<br>
that you have some .java (or .class?) files which implement a protocol and<br>
you want to use that code in your Twisted-based application?<br>
<br>
Or does it mean that you need to interoperate with a Java client or server<br>
by implementing in Python the protocol that is used by that Java software?</blockquote><div>&nbsp;</div><div><br>Yes, this is closer to my need. There is the Python+Twisted library that takes care of networking communication. Then on top of this people may want to write their higher level application with their Java protocol which may or may not have to directly use networking sockets used internally by the Python/Twisted layer.<br>
<br><br>|&nbsp; Java protocols | &nbsp;&nbsp; | Python protocols |<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp; Python library&nbsp; |<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; twisted&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;-- networking --&gt;<br><br></div><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"><br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Could anyone, if have any experience or knowledge, let me know if this is<br>
possible and under which conditions? I heard infact that Jython and Twisted<br>
are not working together..<br>
</blockquote>
<br></div>
Twisted indeed does not work on Jython currently. &nbsp;There are some efforts to<br>
get it working there. &nbsp;You may want to help out with these. :)</blockquote><div><br>Yes, I would like to, but it depends if I get the possibility to allocate time on it... Unless the Java integration becomes blocking for us, we will continue just with pure Python and Twisted.<br>
&nbsp;<br>Thanks,<br>Alessio Pace.<br><br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
Jean-Paul<br>
<br>
_______________________________________________<br>
Twisted-Python mailing list<br>
<a href="mailto:Twisted-Python@twistedmatrix.com" target="_blank">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>
</blockquote></div><br>