Perl Diver 2.31
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

Net::STOMP::Client::Peer

Name Net::STOMP::Client::Peer
Version 2.5
Located at /usr/share/perl5/vendor_perl
File /usr/share/perl5/vendor_perl/Net/STOMP/Client/Peer.pm
Is Core No
Search CPAN for this module Net::STOMP::Client::Peer
Documentation Net::STOMP::Client::Peer
Module Details Net::STOMP::Client::Peer

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 the Net::STOMP::Client manpage 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

the Net::STOMP::Client manpage.


AUTHOR

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

Copyright (C) CERN 2010-2021

Perl Diver brought to you by ScriptSolutions.com © 1997- 2025