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