Net::ST...nection(3)
π NAME π
Net::STOMP::Client::Connection β connection support for Net::STOMP::Client.
Okay bestie, this page is Net::STOMP::Client::Connection(3), straight from the User Contributed Perl Documentation shelf. Itβs literally the connection-support module for Net::STOMP::Client.
π DESCRIPTION π
This module provides connection establishment support β both plain TCP and SSL β as well as URI handling. Itβs the little backend gremlin that makes the connection part work.
π¨ It is used internally by Net::STOMP::Client and should not be directly used elsewhere. Respect the internal-use warning, bestie.
π οΈ FUNCTIONS π οΈ
This module provides the following function (which is not exported):
new([OPTIONS])β attempt to establish a new connection to a STOMP server.
π SSL π
When creating an object with Net::STOMP::Client's new() method, SSL gets activated in either of these cases:
- you supply some socket options (via
sockopts) with a name starting withSSL_, or - you supply a URI (via
uri) with a scheme containingssl.
In those cases, IO::Socket::SSL will be used to create the socket instead of IO::Socket::INET, and the communication with the server will then go through SSL. Itβs giving secure-channel main character energy π
.
Here are the most commonly used SSL socket options:
SSL_ca_pathβ path to a directory containing several trusted certificates as separate files as well as an index of the certificates.SSL_key_fileβ path of your RSA private key.SSL_cert_fileβ path of your certificate.SSL_passwd_cbβ subroutine that should return the password required to decrypt your private key.
For more information, see IO::Socket::SSL.
π FAILOVER π
The uri option of Net::STOMP::Client's new() method can be given a complex URI indicating some kind of failover, for instance:
failover:(tcp://msg01:6163,tcp://msg02:6163)
The given URI must use the ActiveMQ failover syntax (see <http://activemq.apache.org/failover-transport-reference.html>) and only some options are supported, namely:
backOffMultiplierinitialReconnectDelaymaxReconnectAttemptsmaxReconnectDelayrandomizeuseExponentialBackOff
When specified, these failover options will be used only inside the new() method (so at the TCP connection level) and not elsewhere. If the broker later fails during the STOMP interaction, it is up to the program author, knowing the logic of their code, to perform the appropriate recovery actions and eventually reconnect, using again the new() method.
π SEE ALSO π
IO::Socket::INETIO::Socket::SSLNet::STOMP::Client
π AUTHOR π
Lionel Cons <http://cern.ch/lionel.cons>
Copyright (C) CERN 2010-2017
Okay bye bestie, the footer tea is: perl v5.32.1, dated 2019-07-26, and the footer label is Net::ST...nection(3) π
β¨π«Ά
π¦ where this page comes from
- epel 9: perl-Net-STOMP-Client 2.3-10.el9 Β· GPL+ or Artistic
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms