Net::STOMP::Client::Peer - Peer support for Net::STOMP::Client
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()); }
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.
This module provides the following methods:
return a new Net::STOMP::Client::Peer object (class method)
get the protocol
get the host name or address
get the port number
get the host numerical IP address
get the host URI in the form PROTO://HOST:PORT
PROTO://HOST:PORT
Net::STOMP::Client.
Lionel Cons http://cern.ch/lionel.cons
Copyright (C) CERN 2010-2021
To install Net::STOMP::Client, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::STOMP::Client
CPAN shell
perl -MCPAN -e shell install Net::STOMP::Client
For more information on module installation, please visit the detailed CPAN module installation guide.