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