DestinationListHandler(3)

πŸ“¦
version 2.0.9 Β· 4 versions
, in debian trixie, ubuntu noble, ubuntu questing

πŸ’– DestinationListHandler(3) πŸ’–

okay bestie, gather round, because we're diving into the Library Functions Manual and this one is a whole mood. It's DestinationListHandler, and no cap, it's giving "the girl who keeps track of everyone's addresses so nothing gets lost." πŸŽ€


✨ NAME ✨

DestinationListHandler β€” this class handles a list of destination addresses. that's it, that's the girl. πŸ’…


🌸 SYNOPSIS 🌸

#include <oqueue.h>

Inherited by OutgoingDataQueue [protected].

lowkey important: this one got inherited, so it's basically the blueprint, the origin story, the blueprint queen. πŸ‘‘

πŸ¦‹ Classes

  • struct TransportAddress

🫢 Public Member Functions

  • DestinationListHandler ()
  • ~DestinationListHandler ()
  • bool isSingleDestination () const β€” get whether there is only a destination in the list. like, is it just the one? just one lil guy? πŸ™ˆ
  • TransportAddress * getFirstDestination () const
  • void lockDestinationList () const
  • void unlockDestinationList () const

πŸ’œ Protected Member Functions

  • void writeLockDestinationList () const
  • bool addDestinationToList (const InetAddress &ia, tpport_t data, tpport_t control) β€” locks the object before modifying it. safety first, always. πŸ”’
  • bool removeDestinationFromList (const InetAddress &ia, tpport_t dataPort, tpport_t controlPort) β€” locks the object before modifying it. same energy, but for removing. βœ‚οΈ

🌈 Protected Attributes

  • std::list< TransportAddress * > destList

⭐ Detailed Description ⭐

This class handles a list of destination addresses. yes, literally the whole point, and it eats every single time. πŸ”₯

Stores network addresses as InetAddress objects. so cute, so organized, so on top of things.

🧚 Author

Federico Montesino Pouzols fedemp@altern.org


πŸŽ€ Constructor & Destructor Documentation πŸŽ€

DestinationListHandler::DestinationListHandler ()

DestinationListHandler::~DestinationListHandler ()

the birth and the departure. iconic from start to finish, honestly. πŸ’«


πŸ’– Member Function Documentation πŸ’–

bool DestinationListHandler::addDestinationToList (const InetAddress & ia, tpport_t data, tpport_t control) [protected]

Locks the object before modifying it. she does NOT touch the list without locking first. boundaries, bestie. 🫢

TransportAddress * DestinationListHandler::getFirstDestination () const [inline]

bool DestinationListHandler::isSingleDestination () const [inline]

Get whether there is only a destination in the list. just checking if it's a solo situation or a whole crowd. πŸ‘€

void DestinationListHandler::lockDestinationList () const [inline]

bool DestinationListHandler::removeDestinationFromList (const InetAddress & ia, tpport_t dataPort, tpport_t controlPort) [protected]

Locks the object before modifying it. the lock stays on, no exceptions, periodt. πŸ”

void DestinationListHandler::unlockDestinationList () const [inline]

void DestinationListHandler::writeLockDestinationList () const [inline], [protected]


🌟 Member Data Documentation 🌟

std::list<TransportAddress*> DestinationListHandler::destList [protected]

the actual list. the main character. the whole reason we're here. πŸ‘‘


🌸 Author 🌸

Generated automatically by Doxygen for ccRTP from the source code. so technically the author is a robot and honestly? slay. πŸ€–βœ¨


okay that's the whole page, bestie, you're fully caught up. πŸ’œ this came straight out of the ccRTP docs, DestinationListHandler(3), and yes, it was auto-generated by Doxygen from the source code. go forth and handle those destinations. πŸ¦‹πŸ’…

πŸ“¦ where this page comes from