The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

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 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 (C) CERN 2010-2013