Bitcoin Core 31.99.0
P2P Digital Currency
Public Member Functions | Public Attributes | List of all members
mp::Listener Struct Reference

#include <proxy-io.h>

Public Member Functions

 Listener (kj::Own< kj::ConnectionReceiver > &&receiver, std::optional< size_t > max_connections)
 
bool atCapacity () const
 

Public Attributes

kj::Own< kj::ConnectionReceiver > m_receiver
 
std::optional< size_t > m_max_connections
 
size_t m_active_connections {0}
 

Detailed Description

Definition at line 874 of file proxy-io.h.

Constructor & Destructor Documentation

◆ Listener()

mp::Listener::Listener ( kj::Own< kj::ConnectionReceiver > &&  receiver,
std::optional< size_t >  max_connections 
)
inlineexplicit

Definition at line 876 of file proxy-io.h.

Member Function Documentation

◆ atCapacity()

bool mp::Listener::atCapacity ( ) const
inline

Definition at line 879 of file proxy-io.h.

Member Data Documentation

◆ m_active_connections

size_t mp::Listener::m_active_connections {0}

Definition at line 886 of file proxy-io.h.

◆ m_max_connections

std::optional<size_t> mp::Listener::m_max_connections

Definition at line 885 of file proxy-io.h.

◆ m_receiver

kj::Own<kj::ConnectionReceiver> mp::Listener::m_receiver

Definition at line 884 of file proxy-io.h.


The documentation for this struct was generated from the following file: