Thanks for the help. Yes the clarification is that the client and server have a established connection whatsoever happens. They are bound by sockets. I need to do a recursion like function which would notify me of the changes that took place in the database. Typically a messenger service. The fact is that, threads are still experimental in perl and callbacks are difficult to implement. In these circumstances, recursion leads to stack getting dumped and the server getting too busy with the looping. One more problem is how do I check whether the client is listening all the time, he might have long back exited the program, server keeps sending to pipe which doesn't exist, you can use ping style of loopback to check if the client is receiving or not, crude isn't it. I thought of another method, like using two intermediate clients. Let me explain, I have a server with Unix socket connected to /tmp/data which does the database operation, a client(1) is connected thru Unix socket to the server. This client(1) will in turn act as server for TCP-IP based socket and a windows client(2) will get the notification. Please give your valuable feedback for these methods. Gurudutt

In reply to Re: Re: Notifier - Server by Anonymous Monk
in thread Notifier - Server by Anonymous Monk

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.