#include <peer.h>
|
| const PeerId & | id () const noexcept |
| |
| void | send (std::string_view channel, ByteView payload) const |
| | Send bytes on a named application channel.
|
| |
| void | disconnect () const |
| | Request this peer be disconnected.
|
| |
| std::optional< PeerInfo > | info () const |
| | Look up the peer's metadata in the directory (nullopt if gone).
|
| |
Definition at line 25 of file peer.h.
◆ disconnect()
| void librats::Peer::disconnect |
( |
| ) |
const |
Request this peer be disconnected.
◆ id()
| const PeerId & librats::Peer::id |
( |
| ) |
const |
|
inlinenoexcept |
◆ info()
| std::optional< PeerInfo > librats::Peer::info |
( |
| ) |
const |
Look up the peer's metadata in the directory (nullopt if gone).
◆ send()
| void librats::Peer::send |
( |
std::string_view |
channel, |
|
|
ByteView |
payload |
|
) |
| const |
Send bytes on a named application channel.
◆ Node
The documentation for this class was generated from the following file: