good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: 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 reply to Re^2: A server that has a fool as its client: itself
by Anonymous Monk
|
|