Definition at line 78 of file stream_engine.hpp.
kagome::network::StreamEngine::ProtocolDescr::ProtocolDescr |
( |
std::shared_ptr< ProtocolBase > |
proto | ) |
|
|
inlineexplicit |
kagome::network::StreamEngine::ProtocolDescr::ProtocolDescr |
( |
std::shared_ptr< ProtocolBase > |
proto, |
|
|
std::shared_ptr< Stream > |
incoming_stream, |
|
|
std::shared_ptr< Stream > |
outgoing_stream |
|
) |
| |
|
inline |
void kagome::network::StreamEngine::ProtocolDescr::dropReserved |
( |
| ) |
|
|
inline |
bool kagome::network::StreamEngine::ProtocolDescr::hasActiveIncoming |
( |
| ) |
const |
|
inline |
Returns if descriptor contains active incoming stream.
Definition at line 138 of file stream_engine.hpp.
bool kagome::network::StreamEngine::ProtocolDescr::hasActiveOutgoing |
( |
| ) |
const |
|
inline |
Returns if descriptor contains active outgoing stream.
Definition at line 106 of file stream_engine.hpp.
bool kagome::network::StreamEngine::ProtocolDescr::isOutgoingReserved |
( |
| ) |
const |
|
inline |
bool kagome::network::StreamEngine::ProtocolDescr::reserve |
( |
| ) |
|
|
inline |
Sets the flag that outgoing stream establishing. To prevent the situation of multiple streams to a single peer at the same time.
Definition at line 114 of file stream_engine.hpp.
std::deque<std::function<void(std::shared_ptr<Stream>)> > kagome::network::StreamEngine::ProtocolDescr::deferred_messages |
struct { ... } kagome::network::StreamEngine::ProtocolDescr::incoming |
struct { ... } kagome::network::StreamEngine::ProtocolDescr::outgoing |
std::shared_ptr<ProtocolBase> kagome::network::StreamEngine::ProtocolDescr::protocol |
The documentation for this struct was generated from the following file: