NAME

Net::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 provides peer support for Net::STOMP::Client.

It is used to keep track of information about the STOMP server Net::STOMP::Client is connected to.

METHODS

This module provides the following methods to get information:

proto()

protocol

host()

host name or address

port()

port name or number

addr()

host numerical IP address

uri()

URI in the form PROTO://HOST:PORT

AUTHOR

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

Copyright CERN 2010-2011