in reply to Communicating with a long-running process
If you only want monodirectional IPC, I'd stick with the socket, but use UDP to send it. One advantage of using sockets is that if you ever want to talk to the long running process from a different box, the code need little or no modification.
You could use shared memory. It depends which OS you are on as to which module you would need, but that's more complicated and unless you are doing lots of high speed comms, unnecessary.
You could use Named Pipes, though I've had some problems using these from Perl on Win32 and you rarely see them mentioned for *nix.
On win32 there are a whole raft of other options including Clipboard, COM, Data Copy, DDE, File Mapping, Mailslots, RPC and doubtless some other on *nix too; but from your description, a socket seems the easiest and most appropriate mechanism. And if you ever needed to move to a different platform, it would be the easiest to port.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Communicating with a long-running process
by tirwhan (Abbot) on Jan 27, 2006 at 17:49 UTC | |
by BrowserUk (Patriarch) on Jan 27, 2006 at 18:17 UTC |