Symbian platform (C++)
SDK native APIs, runtime and tooling
Loading...
Searching...
No Matches
symbian::net::ByteStream Class Referencefinal

Move-only owner of one TCP, TLS, or application transport. More...

#include <cpp/symbian/net/byte_stream.h>

Public Member Functions

 ByteStream ()=default
 
template<typename Transport >
 ByteStream (std::unique_ptr< Transport > transport)
 
 ByteStream (ByteStream &&) noexcept=default
 
ByteStream & operator= (ByteStream &&) noexcept=default
 
 ByteStream (const ByteStream &)=delete
 
ByteStream & operator= (const ByteStream &)=delete
 
 operator bool () const
 
absl::StatusOr< std::size_t > Read (std::span< std::uint8_t > bytes, absl::Time deadline)
 
absl::Status Write (std::span< const std::uint8_t > bytes, absl::Time deadline)
 
void Close ()
 

Detailed Description

Move-only owner of one TCP, TLS, or application transport.

Read returns zero only at clean EOF. Write completes the whole span or fails. Operations and destruction run on the owning worker.

Constructor & Destructor Documentation

◆ ByteStream() [1/4]

symbian::net::ByteStream::ByteStream ( )
default

◆ ByteStream() [2/4]

template<typename Transport >
symbian::net::ByteStream::ByteStream ( std::unique_ptr< Transport >  transport)
inline

◆ ByteStream() [3/4]

symbian::net::ByteStream::ByteStream ( ByteStream &&  )
defaultnoexcept

◆ ByteStream() [4/4]

symbian::net::ByteStream::ByteStream ( const ByteStream &  )
delete

Member Function Documentation

◆ Close()

void symbian::net::ByteStream::Close ( )
inline

◆ operator bool()

symbian::net::ByteStream::operator bool ( ) const
inlineexplicit

◆ operator=() [1/2]

ByteStream & symbian::net::ByteStream::operator= ( ByteStream &&  )
defaultnoexcept

◆ operator=() [2/2]

ByteStream & symbian::net::ByteStream::operator= ( const ByteStream &  )
delete

◆ Read()

absl::StatusOr< std::size_t > symbian::net::ByteStream::Read ( std::span< std::uint8_t >  bytes,
absl::Time  deadline 
)
inline

◆ Write()

absl::Status symbian::net::ByteStream::Write ( std::span< const std::uint8_t >  bytes,
absl::Time  deadline 
)
inline

The documentation for this class was generated from the following file: