Problems? Is your data what you think it is? | |
PerlMonks |
Re^2: A server that has a fool as its client: itselfby Anonymous Monk |
on Feb 11, 2011 at 14:07 UTC ( [id://887622]=note: print w/replies, xml ) | Need Help?? |
Right. We wouldn't want the data to be replicated ad-nauseum until all resources are exhausted At start-up, there would be no data. When the daemon issues a connect to another daemon, only then would the whole shebang be received once, and there after, the daemons in question would send only changes to the data. I have also figured out how I would get each daemon to determine who connected to who first: using a configuration file listing IP addresses, I would have the daemon with the highest IP address be the listener, and treat the lower-addressed ones as the client. So if the running daemon sees it has a higher IP address than the rest, it will listen only. If it's somewhere in between within a range of listed addresses, it will listen for the lower addressed clients, but connect to the others since they are daemons. Given that, I should have the daemons initiate the data push to the clients upon they connecting. Whew! Of course, I still need to look at everyone's suggested options.
In Section
Seekers of Perl Wisdom
|
|