I have a perl application that uses gtk-perl for its gui. It works really well :-). The program is event driven (timer and user input). One task it performs is to write out some status info to a file every few seconds. This is not really a good idea as the program that retrieves that info may go weeks without asking for it.

What I'd like to do is make an RPC call of some sort to the program to get the data (a less attractive alternative is shared memory). I read the issues with SOAP::Lite in this thread, but I am not sure the SOAP::Lite dispatcher can be integrated with the gtk+ dispatcher. I have seen instructions here how to integrate the C version of the SUN RPC mechanism with the C version of the Gtk dispatch routine.

My question is what kind of RPC to use. I have no problem writing my own polling routine as I currently poll other ports on a periodic basis in my server and I have semaphores of a sort to lock out critical sections.

Thanks, --traveler


In reply to Best way to RPC with gtk-perl by traveler

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.