1Net::STOMP::Client::PeeUrs(e3r)Contributed Perl DocumentNaetti:o:nSTOMP::Client::Peer(3)
2
3
4

NAME

6       Net::STOMP::Client::Peer - Peer support for Net::STOMP::Client
7

SYNOPSIS

9         use Net::STOMP::Client;
10         $stomp = Net::STOMP::Client->new(host => "127.0.0.1", port => 61613);
11         ...
12         $peer = $stomp->peer();
13         if ($peer) {
14             # we are indeed connected to a STOMP server
15             printf("server uri is %s\n", $peer->uri());
16         }
17

DESCRIPTION

19       This module is used internally by Net::STOMP::Client before connection
20       and also afterwards to expose information about the STOMP server that
21       the client is connected to.
22

METHODS

24       This module provides the following methods:
25
26       new([OPTIONS])
27           return a new Net::STOMP::Client::Peer object (class method)
28
29       proto([STRING])
30           get the protocol
31
32       host([STRING])
33           get the host name or address
34
35       port([STRING])
36           get the port number
37
38       addr([STRING])
39           get the host numerical IP address
40
41       uri()
42           get the host URI in the form "PROTO://HOST:PORT"
43

SEE ALSO

45       Net::STOMP::Client.
46

AUTHOR

48       Lionel Cons <http://cern.ch/lionel.cons>
49
50       Copyright (C) CERN 2010-2021
51
52
53
54perl v5.38.0                      2023-07-21       Net::STOMP::Client::Peer(3)
Impressum