ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent-MP/MP.pm
(Generate patch)

Comparing AnyEvent-MP/MP.pm (file contents):
Revision 1.69 by root, Sun Aug 30 18:51:49 2009 UTC vs.
Revision 1.70 by root, Sun Aug 30 19:49:47 2009 UTC

178the current nodename will be used instead (i.e. F<uname -n>). 178the current nodename will be used instead (i.e. F<uname -n>).
179 179
180The function first looks up the profile in the aemp configuration (see the 180The function first looks up the profile in the aemp configuration (see the
181L<aemp> commandline utility). the profile is calculated as follows: 181L<aemp> commandline utility). the profile is calculated as follows:
182 182
183First, all remaining key => value pairs will be used. Then they will be 183First, all remaining key => value pairs (all of which are conviniently
184undocumented at the moment) will be used. Then they will be overwritten by
184overwritten by any values specified in the global default configuration 185any values specified in the global default configuration (see the F<aemp>
185(see the F<aemp> utility), then the chain of profiles selected, if 186utility), then the chain of profiles selected, if any. That means that
186any. That means that the values specified in the profile have highest 187the values specified in the profile have highest priority and the values
187priority and the values specified via C<initialise_node> have lowest 188specified via C<initialise_node> have lowest priority.
188priority.
189 189
190If the profile specifies a node ID, then this will become the node ID of 190If the profile specifies a node ID, then this will become the node ID of
191this process. If not, then the profile name will be used as node ID. The 191this process. If not, then the profile name will be used as node ID. The
192special node ID of C<anon/> will be replaced by a random node ID. 192special node ID of C<anon/> will be replaced by a random node ID.
193 193
195aemp protocol listeners on all binds specified (it is possible and valid 195aemp protocol listeners on all binds specified (it is possible and valid
196to have no binds, meaning that the node cannot be contacted form the 196to have no binds, meaning that the node cannot be contacted form the
197outside. This means the node cannot talk to other nodes that also have no 197outside. This means the node cannot talk to other nodes that also have no
198binds, but it can still talk to all "normal" nodes). 198binds, but it can still talk to all "normal" nodes).
199 199
200If the profile does not specify a binds list, then the node ID will be 200If the profile does not specify a binds list, then a default of C<*> is
201treated as if it were of the form C<host:port>, which will be resolved and 201used.
202used as binds list.
203 202
204Lastly, the seeds list from the profile is passed to the 203Lastly, the seeds list from the profile is passed to the
205L<AnyEvent::MP::Global> module, which will then use it to keep 204L<AnyEvent::MP::Global> module, which will then use it to keep
206connectivity with at least on of those seed nodes at any point in time. 205connectivity with at least on of those seed nodes at any point in time.
207 206

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines