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