|
w11 - cpp 0.794
Backend server for Rlink and w11
|
FIXME_docs. More...
#include <Rw11VirtTermPty.hpp>
Public Member Functions | |
| Rw11VirtTermPty (Rw11Unit *punit) | |
| Default constructor. | |
| ~Rw11VirtTermPty () | |
| Destructor. | |
| virtual bool | Open (const std::string &url, RerrMsg &emsg) |
| FIXME_docs. | |
| virtual bool | Snd (const uint8_t *data, size_t count, RerrMsg &emsg) |
| FIXME_docs. | |
| virtual void | Dump (std::ostream &os, int ind=0, const char *text=0, int detail=0) const |
| FIXME_docs. | |
Public Member Functions inherited from Retro::Rw11VirtTerm | |
| Rw11VirtTerm (Rw11Unit *punit) | |
| Default constructor. | |
| ~Rw11VirtTerm () | |
| Destructor. | |
| virtual const std::string & | ChannelId () const |
| FIXME_docs. | |
| void | SetupRcvCallback (rcvcbfo_t &&rcvcbfo) |
| FIXME_docs. | |
| virtual bool | Snd (const uint8_t *data, size_t count, RerrMsg &emsg)=0 |
| virtual void | Dump (std::ostream &os, int ind=0, const char *text=0, int detail=0) const |
| FIXME_docs. | |
Public Member Functions inherited from Retro::Rw11Virt | |
| Rw11Virt (Rw11Unit *punit) | |
| Default constructor. | |
| virtual | ~Rw11Virt () |
| Destructor. | |
| Rw11Virt (const Rw11Virt &)=delete | |
| Rw11Virt & | operator= (const Rw11Virt &)=delete |
| Rw11Unit & | Unit () const |
| FIXME_docs. | |
| Rw11Cntl & | Cntl () const |
| FIXME_docs. | |
| Rw11Cpu & | Cpu () const |
| FIXME_docs. | |
| Rw11 & | W11 () const |
| FIXME_docs. | |
| RlinkServer & | Server () const |
| FIXME_docs. | |
| RlogFile & | LogFile () const |
| FIXME_docs. | |
| virtual bool | WProt () const |
| FIXME_docs. | |
| const RparseUrl & | Url () const |
| FIXME_docs. | |
| virtual bool | Open (const std::string &url, RerrMsg &emsg)=0 |
| Rstats & | Stats () |
| FIXME_docs. | |
| virtual void | Dump (std::ostream &os, int ind=0, const char *text=0, int detail=0) const |
| FIXME_docs. | |
Protected Member Functions | |
| int | RcvPollHandler (const pollfd &pfd) |
| FIXME_docs. | |
Protected Attributes | |
| int | fFd |
| fd for pty master side | |
Protected Attributes inherited from Retro::Rw11VirtTerm | |
| std::string | fChannelId |
| channel id | |
| rcvcbfo_t | fRcvCb |
| receive callback fobj | |
Protected Attributes inherited from Retro::Rw11Virt | |
| Rw11Unit * | fpUnit |
| back ref to unit | |
| RparseUrl | fUrl |
| bool | fWProt |
| write protected | |
| Rstats | fStats |
| statistics | |
Additional Inherited Members | |
Public Types inherited from Retro::Rw11VirtTerm | |
| enum | stats { kStatNVTRcvPoll = Rw11Virt::kDimStat , kStatNVTSnd , kStatNVTRcvByt , kStatNVTSndByt , kDimStat } |
| typedef std::function< bool(const uint8_t *, size_t)> | rcvcbfo_t |
Public Types inherited from Retro::Rw11Virt | |
| enum | stats { kDimStat = 0 } |
Static Public Member Functions inherited from Retro::Rw11VirtTerm | |
| static std::unique_ptr< Rw11VirtTerm > | New (const std::string &url, Rw11Unit *punit, RerrMsg &emsg) |
| FIXME_docs. | |
FIXME_docs.
Definition at line 26 of file Rw11VirtTermPty.hpp.
|
explicit |
Default constructor.
Definition at line 45 of file Rw11VirtTermPty.cpp.
| Retro::Rw11VirtTermPty::~Rw11VirtTermPty | ( | ) |
Destructor.
Definition at line 53 of file Rw11VirtTermPty.cpp.
References Retro::Rtools::Catch2Cerr(), fFd, Retro::RlinkServer::RemovePollHandler(), and Retro::Rw11Virt::Server().
|
virtual |
FIXME_docs.
Implements Retro::Rw11Virt.
Definition at line 65 of file Rw11VirtTermPty.cpp.
References Retro::RlinkServer::AddPollHandler(), Retro::Rw11VirtTerm::fChannelId, fFd, Retro::Rw11Virt::fUrl, Retro::RerrMsg::InitErrno(), RcvPollHandler(), Retro::Rw11Virt::Server(), and Retro::RparseUrl::Set().
|
virtual |
FIXME_docs.
Implements Retro::Rw11VirtTerm.
Definition at line 108 of file Rw11VirtTermPty.cpp.
References fFd, Retro::Rw11Virt::fStats, Retro::Rstats::Inc(), Retro::RerrMsg::InitErrno(), Retro::Rw11VirtTerm::kStatNVTSnd, and Retro::Rw11VirtTerm::kStatNVTSndByt.
|
virtual |
FIXME_docs.
Reimplemented from Retro::Rw11VirtTerm.
Definition at line 143 of file Rw11VirtTermPty.cpp.
References Retro::Rw11VirtTerm::Dump(), and fFd.
|
protected |
FIXME_docs.
Definition at line 123 of file Rw11VirtTermPty.cpp.
References fFd, Retro::Rw11VirtTerm::fRcvCb, Retro::Rw11Virt::fStats, Retro::Rstats::Inc(), Retro::Rw11VirtTerm::kStatNVTRcvByt, and Retro::Rw11VirtTerm::kStatNVTRcvPoll.
Referenced by Open().
|
protected |
fd for pty master side
Definition at line 43 of file Rw11VirtTermPty.hpp.
Referenced by Dump(), Open(), RcvPollHandler(), Snd(), and ~Rw11VirtTermPty().