http://www.perlmonks.org?node_id=982272


in reply to Re: what else from port ?
in thread what else from port ?

The thing I am look for is exactly in server nature. It's just I am trying to get avoid from going through the TCP layer.

For example, I have a daemon keep monitoring different folders. And while certain condition happen to the files, it raise another perl script to ask for what to do about them. I will input some command via STDIN, and then send back to the daemon server.

For another example, I have a shortcut on desktop, and I can drop files to it, and it calls a script with a file list as ARGV. the scrip then ask the server if they are identical to some existed files. ( The server has carried all the MD5 code of the monitoring (sub)folders ).

Replies are listed 'Best First'.
Re^3: what else from port ?
by BrowserUk (Patriarch) on Jul 17, 2012 at 16:52 UTC

    Windows supports a wealth of IPC mechanisms:

    However, IFAIK, only a few of those are available from Perl. And some of those are via not well tested modules (eg. Win32::Pipe).

    To decide which is appropriate for each particular application, you have to understand the pros & cons of each mechanism. To get advise, you need to supply specific details of each application.

    You can start your investigations here.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

    The start of some sanity?

      Thanks Pope! I got the point for where to start now. =)