I know that I had the idea to chain messengers.
Say gate ones that would use sockets and interior one using named pipes or Unix sockets ( I could implement both and choose depending on the platform).
What I'm not so sure about is the design choice of letting anyone but a head of messengers demon open the necessary file handles :-$
Update
I'm going to give it a try that way : only the head of messengers do the file handle management, he shall use a named pipe for his orders (thus making itself easily cross platform) and shall receive his working parameters as a hash of the following type :
my %params = (
input=>{name=>'filename',
type=>'unix_socket|network_socket|named_pipe',
bind=>address,#if network socket},
output=>{output1=>'filename|socket_name',
output2=>'idem',
...
...
},
);
then he shall open the file handles and create a child process with a little messenger demons that will relay data to and from them. It seemed more elegant than the first idea where I count on other modules to make the right parameter hash for the messenger demon instanciation method (furthermore it should allow me to update this method without having to change code everywhere).
I will post the resulting code in the CUFP section, might give some of you quite a laugh (I'm quite new to multi process programing).
Cheers!
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.