1Net::STOMP::Client::VerUssieorn(C3o)ntributed Perl DocumNeentt:a:tSiToOnMP::Client::Version(3)
2
3
4

NAME

6       Net::STOMP::Client::Version - Version 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         # can change the acceptable versions only _before_ connect()
13         $stomp->accept_version([ "1.1", "1.2" ]);
14         ...
15         $stomp->connect();
16         ...
17         # can get the negotiated version only _after_ connect()
18         printf("using STOMP %s\n", $stomp->version());
19

DESCRIPTION

21       This module handles STOMP protocol version negotiation. It is used
22       internally by Net::STOMP::Client and should not be directly used
23       elsewhere.
24

METHODS

26       This module provides the following methods to Net::STOMP::Client:
27
28       accept_version([VALUE])
29           get/set the list of acceptable STOMP protocol versions; the given
30           value can either be undef (meaning all supported versions) or a
31           single version or an array reference for multiple versions
32
33       version([STRING])
34           get the negotiated STOMP protocol version
35

SUPPORTED VERSIONS

37       Net::STOMP::Client supports the versions 1.0 (see
38       <http://stomp.github.com/stomp-specification-1.0.html>), 1.1 (see
39       <http://stomp.github.com/stomp-specification-1.1.html>) and 1.2 (see
40       <http://stomp.github.com/stomp-specification-1.2.html>) of the STOMP
41       protocol.
42

SEE ALSO

44       Net::STOMP::Client.
45

AUTHOR

47       Lionel Cons <http://cern.ch/lionel.cons>
48
49       Copyright (C) CERN 2010-2017
50
51
52
53perl v5.30.1                      2020-01-30    Net::STOMP::Client::Version(3)
Impressum