Skip to content

Session

Inherits from std::enable_shared_from_this< Session >

Public Functions

Name
Session(std::shared_ptr< libp2p::connection::Stream > stream)
bool read()
bool write(const std::shared_ptr< std::vector< uint8_t > > & buffer)
void close()
bool operator<(const Session & other)

Public Functions Documentation

function Session

inline explicit Session(
    std::shared_ptr< libp2p::connection::Stream > stream
)

function read

inline bool read()

function write

inline bool write(
    const std::shared_ptr< std::vector< uint8_t > > & buffer
)

function close

inline void close()

function operator<

inline bool operator<(
    const Session & other
)

Updated on 2026-04-13 at 23:22:46 -0700