Nostrduino
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | Friends
nostr::NostrRelay Class Reference

#include <NostrPool.h>

Public Member Functions

bool send (NostrString message)
 
 NostrRelay (Connection *conn, NostrString url, const NostrLimits &limits)
 
ConnectiongetConnection () const
 
NostrString getUrl () const
 

Protected Member Functions

void processQueue ()
 

Protected Attributes

Connectionconn
 
NostrString url
 
std::vector< NostrStringmessageQueue
 
size_t queuedMessageBytes = 0
 
NostrLimits limits
 
bool connectedOnce = false
 
bool restoreSubscriptions = false
 

Friends

class NostrPool
 

Constructor & Destructor Documentation

◆ NostrRelay()

nostr::NostrRelay::NostrRelay ( Connection conn,
NostrString  url,
const NostrLimits limits 
)
inline

Member Function Documentation

◆ getConnection()

Connection * nostr::NostrRelay::getConnection ( ) const
inline

◆ getUrl()

NostrString nostr::NostrRelay::getUrl ( ) const
inline

◆ processQueue()

void NostrRelay::processQueue ( )
protected

◆ send()

bool NostrRelay::send ( NostrString  message)

Send a message to the relay

Friends And Related Symbol Documentation

◆ NostrPool

Field Documentation

◆ conn

Connection* nostr::NostrRelay::conn
protected

◆ connectedOnce

bool nostr::NostrRelay::connectedOnce = false
protected

◆ limits

NostrLimits nostr::NostrRelay::limits
protected

◆ messageQueue

std::vector<NostrString> nostr::NostrRelay::messageQueue
protected

◆ queuedMessageBytes

size_t nostr::NostrRelay::queuedMessageBytes = 0
protected

◆ restoreSubscriptions

bool nostr::NostrRelay::restoreSubscriptions = false
protected

◆ url

NostrString nostr::NostrRelay::url
protected

The documentation for this class was generated from the following files: