|
uvco 0.1
|
#include <stream.h>


Public Member Functions | |
| TtyStream (TtyStream &&other)=default | |
| TtyStream (const TtyStream &other)=delete | |
| TtyStream & | operator= (TtyStream &&)=default |
| TtyStream & | operator= (const TtyStream &)=delete |
| ~TtyStream () override=default | |
| Public Member Functions inherited from uvco::StreamBase | |
| template<typename Stream> | |
| StreamBase (std::unique_ptr< Stream > stream) | |
| StreamBase (const StreamBase &)=delete | |
| StreamBase (StreamBase &&)=default | |
| StreamBase & | operator= (const StreamBase &)=delete |
| StreamBase & | operator= (StreamBase &&)=default |
| virtual | ~StreamBase () |
| Promise< std::optional< std::string > > | read (size_t maxSize=defaultMaxReadSize) |
| Promise< size_t > | read (std::span< char > buffer) |
| Promise< size_t > | write (std::string buf) |
| Promise< size_t > | writeBorrowed (std::span< const char > buf) |
| Promise< void > | shutdown () |
| void | close () |
| const uv_stream_t * | underlying () const |
| Return the underlying UV stream object. | |
| uv_os_fd_t | fd () const |
Static Public Member Functions | |
| static TtyStream | tty (const Loop &loop, int fd) |
| static TtyStream | stdin (const Loop &loop) |
| static TtyStream | stdout (const Loop &loop) |
| static TtyStream | stderr (const Loop &loop) |
Private Member Functions | |
| TtyStream (std::unique_ptr< uv_tty_t > stream) | |
Additional Inherited Members | |
| Static Public Attributes inherited from uvco::StreamBase | |
| static constexpr size_t | defaultMaxReadSize = 4080 |
| Protected Member Functions inherited from uvco::StreamBase | |
| uv_stream_t & | stream () |
| void | destroyStream () |
A stream referring to stdin/stdout/stderr. Should be created using one of the static member functions, each of which creates a TTY stream referring to the respective standard stream.
Note: these must be TTYs; input/output redirection may cause failures in libuv. Normal files are not yet implemented.
|
default |
|
delete |
|
overridedefault |
|
inlineexplicitprivate |