Mail::MtPolicyd::Client(3pm)

Mail::MtPolicyd::Client3pm

A policyd client class

Version

version 2.05

Overview

Client class to query a policyd server.

Synopsis

  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;

Methods

request ( $request )

Will send a Mail::MtPolicyd::Client::Request to the remote host and return a Mail::MtPolicyd::Client::Response.

Attributes

socket_path (default: undef)

Path of a socket of the policyd server.

If defined this socket will be used instead of a tcp connection.

host (default: localhost:12345)

Remote address/port of the policyd server.

keepalive (default: 0)

Keep connection open for multiple requests.

Releases

5 releases since Debian 9 (Stretch); the text changed 4 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13

Author

Markus Benning <[email protected]>

From mtpolicyd 2.05-1.2 in Debian 13 (Trixie). Parsed by carta from the page's man source.