Net::BG...ransport(3)

πŸ“¦
version 0.18 Β· 4 versions
, in epel 9

✨ NAME ✨

okay so bestie, this is Net::BGP::Transport β€” the class encapsulating BGP-4 transport session state and functionality. πŸ’…


🌸 SYNOPSIS 🌸

           use Net::BGP::Transport;

           $trans = Net::BGP::Transport->new(
               Start                => 1,
               Parent               => Net::BGP::Peer->new(),
               ConnectRetryTime     => 300,
               HoldTime             => 60,
               KeepAliveTime        => 20
           );

           $version = $trans->version();

           $trans->start();
           $trans->stop();

           $trans->update($update);
           $trans->refresh($refresh);

πŸ¦‹ DESCRIPTION πŸ¦‹

This module encapsulates all the state and functionality associated with a BGP transport connection. Each instance of a Net::BGP::Transport object corresponds to one TCP session with a distinct peer. 🫢

bestie, it should not be used by itself β€” it's meant to be encapsulated in a Net::BGP::Peer object. no cap.

🧚 CONSTRUCTOR 🧚

πŸ› οΈ new() β€” create a new Net::BGP::Transport object

This is the constructor for Net::BGP::Transport objects. It returns a reference to the newly created object. ✨ The following named parameters may be passed to the constructor β€” and once the object is created, the information can not be changed. periodt.

  • Start β€” has the same meaning as the equivalent named argument for Net::BGP::Peer.
  • ConnectRetryTime β€” has the same meaning as the equivalent named argument for Net::BGP::Peer.
  • HoldTime β€” has the same meaning as the equivalent named argument for Net::BGP::Peer.
  • KeepAliveTime β€” has the same meaning as the equivalent named argument for Net::BGP::Peer.
  • Parent β€” the parent Net::BGP::Peer object.

🧡 renew() β€” fetch the existing Net::BGP::Peer object from the "object string".

This "reconstructor" returns a previously constructed object from the perl generated string-context scalar of the object, e.g. Net::BGP::Transport=HASH(0x820952c). πŸͺ„

πŸ‘‘ ACCESSOR METHODS πŸ‘‘

  • version()
  • start()
  • stop()
  • update()
  • refresh()
  • is_established()

These methods do the actual work for the methods of the same name in Net::BGP::Peer. πŸ’ͺ

πŸ”₯ SEE ALSO πŸ”₯

  • Net::BGP::Peer
  • Net::BGP
  • Net::BGP::Update
  • Net::BGP::Refresh

πŸŽ€ AUTHOR πŸŽ€

  • Stephen J. Scheck <sscheck@cpan.org> in original Peer.pm form
  • Martin Lorensen <lorensen@cpan.org> separated into Transport.pm

πŸ’– cute sign-off: this page is from the User Contributed Perl Documentation, version perl v5.32.1, dated 2021-12-02, and the manual is Net::BG...ransport(3). mwah πŸ’‹

πŸ“¦ where this page comes from