Mail::MtPolicyd::Client - a policyd client class
version 2.05
Client class to query a policyd server.
use Mail::MtPolicyd::Client; use Mail::MtPolicyd::Client::Request; my $client = Mail::MtPolicyd::Client->new( host => 'localhost:12345', keepalive => 1, ); my $request = Mail::MtPolicyd::Client::Request->new( 'client_address' => '192.168.0.1', ); my $response = $client->request( $request ); print $response->as_string;
Will send a Mail::MtPolicyd::Client::Request to the remote host and return a Mail::MtPolicyd::Client::Response.
Path of a socket of the policyd server.
If defined this socket will be used instead of a tcp connection.
Remote address/port of the policyd server.
Keep connection open for multiple requests.
Markus Benning <ich@markusbenning.de>
This software is Copyright (c) 2014 by Markus Benning <ich@markusbenning.de>.
This is free software, licensed under:
The GNU General Public License, Version 2, June 1991
To install Mail::MtPolicyd, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mail::MtPolicyd
CPAN shell
perl -MCPAN -e shell install Mail::MtPolicyd
For more information on module installation, please visit the detailed CPAN module installation guide.