Gimp::Net - Communication module for the gimp-perl server.
use Gimp qw( interface=net );
WARNING: the Net-Server may open a listening socket at port 10009, reachable for everybody. In this version, no provisions for security have been made!
You first have to install the "Perl-Server" extension somewhere where Gimp can find it (e.g in your .gimp/plug-ins/ directory). Then have a look at example-fu.pl (and run it!), or example-net.pl (and run it!).
The environment variable GIMP_HOST specifies the default server to contact. The syntax is [auth@][tcp/]hostname[:port] for tcp or [auth@]unix/local/socket/path. Examples are:
GIMP_HOST
www.yahoo.com # just kidding ;) yahoo.com:11100 # non-standard port tcp/yahoo.com # make sure it uses tcp authorize@tcp/yahoo.com:123 # full-fledged specification unix/tmp/unx # use unix domain socket password@unix/tmp/test # additionally use a password authorize@ # specify authorization only
net()
is called after we succesfully connected to the server. Do your dirty work in this function.
server_quit()
sends the perl server a quit command.
(Ver 0.04..) This module is much faster than it ought to be... Silly that I wondered wether I should implement it in perl or C, since perl is soo fast.
Marc Lehmann <pcg@goof.com>
perl(1), Gimp,
To install Gimp, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Gimp
CPAN shell
perl -MCPAN -e shell install Gimp
For more information on module installation, please visit the detailed CPAN module installation guide.