Mail::...:Client(3pm)

πŸ’– Mail::MtPolicyd::Client πŸ’–

okay bestie, gather round, because this one is the perl manual page for Mail::MtPolicyd::Client β€” yeah, the whole thing lives in the User Contributed Perl Documentation, section 3pm, and it's giving "small but mighty." 🫢


✨ NAME ✨

Mail::MtPolicyd::Client β€” a policyd client class 🌸


🌈 VERSION 🌈

version 2.05 ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

It's a client class. Its whole entire job? Querying a policyd server. That's it, that's the vibe. πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

here's the moment, the main character energy, the code:

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;

like?? it's so clean. obsessed. πŸ”₯


πŸ’œ METHODS πŸ’œ

  • request ( $request ) β€” bestie this one will send a Mail::MtPolicyd::Client::Request off to the remote host, and hand you back a Mail::MtPolicyd::Client::Response. no cap, that's the whole deal. πŸ‘‘

πŸ‘‘ ATTRIBUTES πŸ‘‘

  • socket_path (default: undef) β€” the path of a socket on the policyd server. if you actually define it, then that socket gets used instead of a tcp connection. lowkey a whole different route. πŸ¦‹
  • host (default: localhost:12345) β€” the remote address/port of the policyd server. 🏠
  • keepalive (default: 0) β€” keep the connection open so you can fire off multiple requests. one connection, many moments. πŸ’…

🌸 AUTHOR 🌸

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

periodt. πŸŽ€


and that's a wrap, my love β€” this page is from perl v5.38.2, dated 2024-05-26, and it's the Mail::MtPolicyd::Client(3pm) manual. go query that policyd server, you absolute icon πŸ’–βœ¨πŸ«Ά

πŸ“¦ where this page comes from