#include <icy/symple/roster.h>Inherits:
string, Peer >
The Roster provides a registry for active network peers indexed by session ID.
| Return | Name | Description |
|---|---|---|
Signal< void(Peer &)> | PeerAdded | Lifecycle signals for external observers (samples, UI). |
Signal< void(constPeer &)> | PeerRemoved |
Signal< void(Peer &)> PeerAddedLifecycle signals for external observers (samples, UI).
Signal< void(constPeer &)> PeerRemoved| Return | Name | Description |
|---|---|---|
Roster | ||
Peer * | getByHost | Returns the first peer which matches the given host address. |
Map | peers const | Returns a deep copy of the peer map. |
void | print const | |
constchar * | className virtual const inline |
Roster()Peer * getByHost(std::string_view host)Returns the first peer which matches the given host address.
const
Map peers() constReturns a deep copy of the peer map.
const
void print(std::ostream & os) constvirtual const inline
virtual inline constchar * className() constinline
inline void onAdd(const std::string &, Peer * peer)inline
inline void onRemove(const std::string &, Peer * peer)