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