<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Thanks pat,<br>
      <br>
      <br>
      This is the result. <a class="moz-txt-link-freetext" href="https://www.youtube.com/watch?v=6vqPQAWEqBk">https://www.youtube.com/watch?v=6vqPQAWEqBk</a><br>
      <br>
      <br>
      Felipe<br>
      <br>
      <br>
      Le 06/12/2012 13:57, Pat Marion a &eacute;crit&nbsp;:<br>
    </div>
    <blockquote
cite="mid:CAMetC=RyrnFzqNpxt4CfUREA0-pn8kigw0EyCWv71V=3aNvqWQ@mail.gmail.com"
      type="cite">Yes, you can send information back through the
      socket.&nbsp; If you're using the socket to invoke python code, then
      any string returned by your python code will be written to the
      socket.&nbsp; But, by default the python handler method doesn't return
      anything.&nbsp; If you edit pqPythonSocketHandler.cxx, you can change
      the python handler function that is used.&nbsp; Just put some code like
      this at the top of onSocketReadReady():<br>
      <br>
      &nbsp; PyObject* mainModule = PyImport_AddModule("__main__");<br>
      &nbsp; PyObject* mainDict = PyModule_GetDict(mainModule);<br>
      &nbsp; this-&gt;Internal-&gt;Callback = PyDict_GetItemString(mainDict,
      "myFunction");<br>
      <br>
      That will make the socket forward the string to a python function
      you've implemented called "myFunction()", 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
            moz-do-not-send="true"
            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'm using the great plugin ;) ParaViewSocketPlugin, to control
          ParaView. But now I will like to have some information sent
          back to the client. &nbsp;I look at the sources but I couldn'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&eacute;nieur de Recherche<br>
          -------------------------------------<br>
          T&eacute;l. : <a moz-do-not-send="true"
            href="tel:33%20%280%292%2040%2037%2016" value="+13302403716"
            target="_blank">33 (0)2 40 37 16</a> 57<br>
          Fax. : <a moz-do-not-send="true"
            href="tel:33%20%280%292%2040%2074%2074" value="+13302407474"
            target="_blank">33 (0)2 40 74 74</a> 06<br>
          <a moz-do-not-send="true"
            href="mailto:Felipe.Bordeu@ec-nantes.fr" target="_blank">Felipe.Bordeu@ec-nantes.fr</a><br>
          Institut GeM - UMR CNRS 6183<br>
          &Eacute;cole Centrale Nantes<br>
          1 Rue de La No&euml;, 44321 Nantes, FRANCE<br>
          -------------------------------------<br>
          <br>
          _______________________________________________<br>
          Powered by <a moz-do-not-send="true"
            href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
          <br>
          Visit other Kitware open-source projects at <a
            moz-do-not-send="true"
            href="http://www.kitware.com/opensource/opensource.html"
            target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
          <br>
          Please keep messages on-topic and check the ParaView Wiki at:
          <a moz-do-not-send="true"
            href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
          <br>
          Follow this link to subscribe/unsubscribe:<br>
          <a moz-do-not-send="true"
            href="http://www.paraview.org/mailman/listinfo/paraview"
            target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
        </blockquote>
      </div>
      <br>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Felipe Bordeu Weldt
Ing&eacute;nieur de Recherche
-------------------------------------
T&eacute;l. : 33 (0)2 40 37 16 57
Fax. : 33 (0)2 40 74 74 06
<a class="moz-txt-link-abbreviated" href="mailto:Felipe.Bordeu@ec-nantes.fr">Felipe.Bordeu@ec-nantes.fr</a>
Institut GeM - UMR CNRS 6183
&Eacute;cole Centrale Nantes
1 Rue de La No&euml;, 44321 Nantes, FRANCE
-------------------------------------</pre>
  </body>
</html>