Yes, you can send information back through the socket.  If you&#39;re using the socket to invoke python code, then any string returned by your python code will be written to the socket.  But, by default the python handler method doesn&#39;t return anything.  If you edit pqPythonSocketHandler.cxx, you can change the python handler function that is used.  Just put some code like this at the top of onSocketReadReady():<br>

<br>  PyObject* mainModule = PyImport_AddModule(&quot;__main__&quot;);<br>  PyObject* mainDict = PyModule_GetDict(mainModule);<br>  this-&gt;Internal-&gt;Callback = PyDict_GetItemString(mainDict, &quot;myFunction&quot;);<br>

<br>That will make the socket forward the string to a python function you&#39;ve implemented called &quot;myFunction()&quot;, and any string returned by that will be written to the socket.<br><br>Pat<br><br><div class="gmail_quote">

On Thu, Dec 6, 2012 at 12:42 AM, Felipe Bordeu <span dir="ltr">&lt;<a href="mailto:felipe.bordeu@ec-nantes.fr" target="_blank">felipe.bordeu@ec-nantes.fr</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

hi everybody,<br>
<br>
I&#39;m using the great plugin ;) ParaViewSocketPlugin, to control ParaView. But now I will like to have some information sent back to the client.  I look at the sources but I couldn&#39;t figure out the way to do it.<br>


<br>
Is this possible, using the plugin (or some minor modifications) ???<br>
<br>
Felipe<br>
<br>
-- <br>
Felipe Bordeu Weldt<br>
Ingénieur de Recherche<br>
------------------------------<u></u>-------<br>
Tél. : <a href="tel:33%20%280%292%2040%2037%2016" value="+13302403716" target="_blank">33 (0)2 40 37 16</a> 57<br>
Fax. : <a href="tel:33%20%280%292%2040%2074%2074" value="+13302407474" target="_blank">33 (0)2 40 74 74</a> 06<br>
<a href="mailto:Felipe.Bordeu@ec-nantes.fr" target="_blank">Felipe.Bordeu@ec-nantes.fr</a><br>
Institut GeM - UMR CNRS 6183<br>
École Centrale Nantes<br>
1 Rue de La Noë, 44321 Nantes, FRANCE<br>
------------------------------<u></u>-------<br>
<br>
______________________________<u></u>_________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/<u></u>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/<u></u>ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/<u></u>mailman/listinfo/paraview</a><br>
</blockquote></div><br>