|No such thing as a small change|
"Single-machine IPC via sockets" and other things to say in the darkby Hot Pastrami (Monk)
|on Sep 14, 2000 at 01:00 UTC||Need Help??|
Hot Pastrami has asked for the
wisdom of the Perl Monks concerning the following question:
I'm trying to find information on using sockets to communicate between 2 Perl scripts running on the same machine, but I've had little luck to date... that info which I can find is all relating to IP sockets over the Internet. The Camel book has some, but written in a way that could make a sockets novice openly weep (for instance: "NAME should be a packed network address of the proper type for the socket"). I've heard rumors that the Perl Cookbook has good examples of it, but my local Barnes and Noble didn't have that one in stock, so I thought I'd see if anyone here could offer help.
Can anyone possibly trouble themselves to post snippets of what the two scripts might look like to pass info between one another via sockets? Although they're on the same machine, one will play a server role, the other a client... the server will wait for and respond to requests from the client. I can figure out the error checking and ugly details, I just need to catch a glimpse of the basic concept in code.
Thanks a whole bunch,
Alan "Hot Pastrami" Bellows
-Sitting calmly with scissors-