Net::STOMP::Client::PeUser)Contributed Perl DocumenNet::STOMP::Client::Peer(3)NAMENet::STOMP::Client::Peer - Peer support for Net::STOMP::Client
SYNOPSIS
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
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.
METHODS
This module provides the following methods:
new([OPTIONS])
return a new Net::STOMP::Client::Peer object (class method)
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.
AUTHOR
Lionel Cons <http://cern.ch/lionel.cons>
Copyright CERN 2010-2012
perl v5.14.3 2012-12-14 Net::STOMP::Client::Peer(3)