Broker: use of broker::peering

In Broker, what is the use case for having an explicit peering between
two endpoints? Would it maybe suffice to provide endpoint introspection,
i.e., the ability to iterate over an endpoint's peers? At least Bro
doesn't use broker::endpoint for anything but that, but I was wondering
if I am missing a use case that involves explicit peerings.

If there's no clear use case, I was thinking to make broker::peering an
implementation detail and remove it from the public API.

    Matthias

I don’t recall if there’s strong reasons to use those “peering” objects as a way of identifying “connection handles” instead of just having the API consume something that identifies individual peers by themselves. I think you’re safe changing it as long as a user continues to have a way to disconnect an endpoint from any one of its peers.

- Jon

I think you’re safe changing it as long as a user continues to have a
way to disconnect an endpoint from any one of its peers.

Yep, that makes sense. Thanks for chiming in.

    Matthias