"Mobile::Executive" - used to signal the intention to relocate a Scooby mobile agent from the current Location to some other (possibly remote) Location.
2.03 (version 1.0x never released).
use Mobile::Executive;
...
relocate( $remote_location, $remote_port );
Part of the Scooby mobile agent machinery, the Mobile::Executive module provides a means to signal the agents intention to relocate to another Location. Typical usage is as shown in the SYNOPSIS section above. Assuming an instance of Mobile::Location is executing on $remote_location at protocol port number $remote_port, the agent stops executing on the current Location, relocates to the remote Location, then continues to execute from the statement immediately AFTER the relocate statement.
Note: a functioning keyserver is required.
The only subroutine provided to programs that use this module is:
relocate
and it takes two parameters: a IP address (or name) of the remote Location, and the protocol port number that the Location is listening on.
A Perl BEGIN block determines the absolute path to the mobile agents source code file, and puts it into the $absolute_fn scalar (which is automatically exported). This block also generates a PK+/PK- pairing (in $public_key and $private_key) and exports both values (as they are used by Devel::Scooby).
There used to be loads, but now there is only one. Read the Scooby Guide, available on-line at: http://glasnost.itcarlow.ie/~scooby/guide.html.
The Mobile::Location class (for creating Locations), and the Devel::Scooby module (for running mobile agents).
The Scooby Website: http://glasnost.itcarlow.ie/~scooby/.
Paul Barry, Institute of Technology, Carlow in Ireland, paul.barry@itcarlow.ie, http://glasnost.itcarlow.ie/~barryp/.
Copyright (c) 2003, Paul Barry. All Rights Reserved.
This module is free software. It may be used, redistributed and/or modified under the same terms as Perl itself.
To install Mobile::Executive, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mobile::Executive
CPAN shell
perl -MCPAN -e shell install Mobile::Executive
For more information on module installation, please visit the detailed CPAN module installation guide.