#include <stream_proxy_base.hpp>
|
| StreamProxyBase (std::shared_ptr< Stream > stream) |
|
void | read (gsl::span< uint8_t > out, size_t bytes, ReadCallbackFunc cb) override |
|
void | readSome (gsl::span< uint8_t > out, size_t bytes, ReadCallbackFunc cb) override |
|
void | deferReadCallback (outcome::result< size_t > res, ReadCallbackFunc cb) override |
|
void | write (gsl::span< const uint8_t > in, size_t bytes, WriteCallbackFunc cb) override |
|
void | writeSome (gsl::span< const uint8_t > in, size_t bytes, WriteCallbackFunc cb) override |
|
void | deferWriteCallback (std::error_code ec, WriteCallbackFunc cb) override |
|
bool | isClosedForRead () const override |
|
bool | isClosedForWrite () const override |
|
bool | isClosed () const override |
|
void | close (VoidResultHandlerFunc cb) override |
|
void | reset () override |
|
void | adjustWindowSize (uint32_t new_size, VoidResultHandlerFunc cb) override |
|
outcome::result< bool > | isInitiator () const override |
|
outcome::result< peer::PeerId > | remotePeerId () const override |
|
outcome::result< multi::Multiaddress > | localMultiaddr () const override |
|
outcome::result< multi::Multiaddress > | remoteMultiaddr () const override |
|
|
std::shared_ptr< Stream > | stream |
|
Allows implementing only required subset of virtual methods. Implements all virtual methods and forwards them to stream.
Definition at line 16 of file stream_proxy_base.hpp.
libp2p::connection::StreamProxyBase::StreamProxyBase |
( |
std::shared_ptr< Stream > |
stream | ) |
|
|
inlineexplicit |
void libp2p::connection::StreamProxyBase::adjustWindowSize |
( |
uint32_t |
new_size, |
|
|
VoidResultHandlerFunc |
cb |
|
) |
| |
|
inlineoverride |
void libp2p::connection::StreamProxyBase::close |
( |
VoidResultHandlerFunc |
cb | ) |
|
|
inlineoverride |
void libp2p::connection::StreamProxyBase::deferReadCallback |
( |
outcome::result< size_t > |
res, |
|
|
ReadCallbackFunc |
cb |
|
) |
| |
|
inlineoverride |
void libp2p::connection::StreamProxyBase::deferWriteCallback |
( |
std::error_code |
ec, |
|
|
WriteCallbackFunc |
cb |
|
) |
| |
|
inlineoverride |
bool libp2p::connection::StreamProxyBase::isClosed |
( |
| ) |
const |
|
inlineoverride |
bool libp2p::connection::StreamProxyBase::isClosedForRead |
( |
| ) |
const |
|
inlineoverride |
bool libp2p::connection::StreamProxyBase::isClosedForWrite |
( |
| ) |
const |
|
inlineoverride |
outcome::result<bool> libp2p::connection::StreamProxyBase::isInitiator |
( |
| ) |
const |
|
inlineoverride |
outcome::result<multi::Multiaddress> libp2p::connection::StreamProxyBase::localMultiaddr |
( |
| ) |
const |
|
inlineoverride |
void libp2p::connection::StreamProxyBase::read |
( |
gsl::span< uint8_t > |
out, |
|
|
size_t |
bytes, |
|
|
ReadCallbackFunc |
cb |
|
) |
| |
|
inlineoverride |
void libp2p::connection::StreamProxyBase::readSome |
( |
gsl::span< uint8_t > |
out, |
|
|
size_t |
bytes, |
|
|
ReadCallbackFunc |
cb |
|
) |
| |
|
inlineoverride |
outcome::result<multi::Multiaddress> libp2p::connection::StreamProxyBase::remoteMultiaddr |
( |
| ) |
const |
|
inlineoverride |
outcome::result<peer::PeerId> libp2p::connection::StreamProxyBase::remotePeerId |
( |
| ) |
const |
|
inlineoverride |
void libp2p::connection::StreamProxyBase::reset |
( |
| ) |
|
|
inlineoverride |
void libp2p::connection::StreamProxyBase::write |
( |
gsl::span< const uint8_t > |
in, |
|
|
size_t |
bytes, |
|
|
WriteCallbackFunc |
cb |
|
) |
| |
|
inlineoverride |
void libp2p::connection::StreamProxyBase::writeSome |
( |
gsl::span< const uint8_t > |
in, |
|
|
size_t |
bytes, |
|
|
WriteCallbackFunc |
cb |
|
) |
| |
|
inlineoverride |
std::shared_ptr<Stream> libp2p::connection::StreamProxyBase::stream |
The documentation for this struct was generated from the following file: