XP is just a number | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Generally stuff made for the Internet will always work on the local host as well. You can set up "Internet" sockets and do IPC that way, just connecting to 'localhost' to do the deed.
Generally, however, if you want to limit your process's interaction to processes running on the local machine, you should consider Unix domain sockets, which work a lot like Internet sockets, but you listen on a special file, and have your other process "connect" to this file. Both of these options have the added benefit/drawback of being able to serve any type of client that wants to interact with your "server" script, including clients that don't have any business doing this. If this is a problem, you may want to look into shared memory pools or pipes. The perlipc man page has some great example code. In reply to RE:
by Fastolfe
|
|