Net::ST...t::Peer(3)

πŸ“¦ version 2.3, in epel 9

πŸ’– Net::STOMP::Client::Peer πŸ’– β€” Net::ST...t::Peer(3)

okay so this is the User Contributed Perl Documentation page for Net::STOMP::Client::Peer, and it's literally all about peer support for Net::STOMP::Client. bestie, the vibes are internal helper module but make it iconic. πŸ’…


✨ NAME ✨

Net::STOMP::Client::Peer β€” peer support for Net::STOMP::Client, periodt.


🌸 SYNOPSIS 🌸

here's the synopsis, no cap:

use Net::STOMP::Client;
$stomp = Net::STOMP::Client->new(host => "127.0.0.1", port => 61613);
...
$peer = $stomp->peer();
if ($peer) {
    # we are indeed connected to a STOMP server
    printf("server uri is %s\n", $peer->uri());
}

πŸ¦‹ DESCRIPTION πŸ¦‹

so this module is used internally by Net::STOMP::Client β€” before connection and also afterwards β€” to expose information about the STOMP server that the client is connected to. it's not the main character; it's the backstage pass, iykyk. πŸŽ€


πŸ’… METHODS πŸ’…

this module provides the following methods, fr fr:

  • new([OPTIONS]) β€” returns a new Net::STOMP::Client::Peer object (class method). new object, who dis?
  • proto([STRING]) β€” get the protocol.
  • host([STRING]) β€” get the host name or address.
  • port([STRING]) β€” get the port number.
  • addr([STRING]) β€” get the host numerical IP address.
  • uri() β€” get the host URI in the form "PROTO://HOST:PORT".

🌈 SEE ALSO 🌈

Net::STOMP::Client. that's the whole see also, bestie. πŸ‘‘


🫢 AUTHOR 🫢

Lionel Cons <http://cern.ch/lionel.cons>

Copyright (C) CERN 2010-2017


mwah πŸ’‹ this page came from perl v5.32.1, dated 2019-07-26, and it's the Net::ST...t::Peer(3) manual page. bye bestie! πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from