Event:...ection(3pm)
π Event::RPC::Connection(3pm) π
okay bestie, welcome to the User Contributed Perl Documentation section of the manual, where we're gonna talk about Event::RPC::Connection β the lil class that reps a RPC connection. it's giving internal-API-only realness, and honestly? iconic. π
β¨ NAME β¨
Event::RPC::Connection β represents a RPC connection π¦
πΈ SYNOPSIS πΈ
heads up bestie: you literally never create instances of this class in your own code.Event::RPC::Connectionis only used internally byEvent::RPC::Server. but β and this is the slay part β you may request connection objects using theconnection_hookofEvent::RPC::Serverand then have some read access on them. casual. π
my $connection = Event::RPC::Server::Connection->new (
$rpc_server, $client_socket
);
also!! you can grab the currently active connection straight from your Event::RPC::Server object, like so:
my $server = Event::RPC::Server->instance;
my $connection = $server->get_active_connection;
no cap, that's the whole vibe. π
π DESCRIPTION π
objects of this class represent a connection from an Event::RPC::Client to an Event::RPC::Server instance. they live inside the server (main character energy fr fr), and the whole entire Client/Server protocol is implemented right here. the way that this one class is carrying the entire conversation?? obsessed. ππ
π READ ONLY ATTRIBUTES π
the following attributes may be read using the corresponding get_ATTRIBUTE accessors. read only means read only, bestie, we do not touch. π
cidβ the connection ID of this connection. it's a number which is unique for this server instance. lowkey your connection's little social security number. βserverβ theEvent::RPC::Serverinstance this connection belongs to. it's giving find your people. π«Άis_authenticatedβ this boolean value reflects whether the connection is authenticated resp. whether the client passed correct credentials. true or false, no in-between, vibe check passed or not. π₯auth_userβ this is the name of the user who was authenticated successfully for this connection. shoutout to them specifically. πΈclient_oidsβ this is a hash reference of object id's which are in use by the client of this connection. keys are the object ids, value is always1. you can get the corresponding objects by using the
$connection->get_client_object($oid)
method. easy peasy. β¨
π¨ bestie listen to me right now: don't change anything in this hash β in particular, don't delete or add entries. Event::RPC does all the necessary garbage collection transparently, so there is literally no need to mess with that. don't do it. put it down. hands off. π
π AUTHORS π
- JΓΆrn Reder
<joern AT zyn.de>π
π COPYRIGHT AND LICENSE π
Copyright (C) 2005-2015 by JΓΆrn Reder <joern AT zyn.de>.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. π¦
and that's the whole page, bestie!! this one came from perl v5.40.1 and the docs were dated 2025-09-29 β tysm for reading, mwah, go read your other manpages, ily ππ β¨
π¦ where this page comes from
- ubuntu resolute: libevent-rpc-perl 1.11-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libevent-rpc-perl 1.11-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms