sync AcceptStream

This commit is contained in:
orignal 2022-11-11 13:31:54 -05:00
parent 85b78dfb9b
commit 78357baca4
2 changed files with 22 additions and 1 deletions

View file

@ -279,7 +279,8 @@ namespace stream
bool IsAcceptorSet () const { return m_Acceptor != nullptr; };
void AcceptOnce (const Acceptor& acceptor);
void AcceptOnceAcceptor (std::shared_ptr<Stream> stream, Acceptor acceptor, Acceptor prev);
std::shared_ptr<Stream> AcceptStream (int timeout = 0); // sync
std::shared_ptr<i2p::client::ClientDestination> GetOwner () const { return m_Owner; };
void SetOwner (std::shared_ptr<i2p::client::ClientDestination> owner) { m_Owner = owner; };
uint16_t GetLocalPort () const { return m_LocalPort; };