|
w11 - cpp 0.794
Backend server for Rlink and w11
|
FIXME_docs. More...
#include <Rw11VirtEthTap.hpp>
Public Member Functions | |
| Rw11VirtEthTap (Rw11Unit *punit) | |
| Default constructor. | |
| ~Rw11VirtEthTap () | |
| Destructor. | |
| virtual bool | Open (const std::string &url, RerrMsg &emsg) |
| FIXME_docs. | |
| virtual bool | Snd (const RethBuf &ebuf, 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::Rw11VirtEth | |
| Rw11VirtEth (Rw11Unit *punit) | |
| Default constructor. | |
| ~Rw11VirtEth () | |
| Destructor. | |
| virtual const std::string & | ChannelId () const |
| FIXME_docs. | |
| void | SetupRcvCallback (rcvcbfo_t &&rcvcbfo) |
| FIXME_docs. | |
| virtual bool | Snd (const RethBuf &ebuf, 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::Rw11VirtEth | |
| 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::Rw11VirtEth | |
| enum | stats { kStatNVTRcvPoll = Rw11Virt::kDimStat , kStatNVTSnd , kStatNVTRcvByt , kStatNVTSndByt , kDimStat } |
| typedef std::function< bool(std::shared_ptr< RethBuf > &)> | rcvcbfo_t |
Public Types inherited from Retro::Rw11Virt | |
| enum | stats { kDimStat = 0 } |
Static Public Member Functions inherited from Retro::Rw11VirtEth | |
| static std::unique_ptr< Rw11VirtEth > | New (const std::string &url, Rw11Unit *punit, RerrMsg &emsg) |
| FIXME_docs. | |
FIXME_docs.
Definition at line 25 of file Rw11VirtEthTap.hpp.
|
explicit |
Default constructor.
Definition at line 52 of file Rw11VirtEthTap.cpp.
| Retro::Rw11VirtEthTap::~Rw11VirtEthTap | ( | ) |
Destructor.
Definition at line 60 of file Rw11VirtEthTap.cpp.
References Retro::Rtools::Catch2Cerr(), fFd, Retro::RlinkServer::RemovePollHandler(), and Retro::Rw11Virt::Server().
|
virtual |
FIXME_docs.
Implements Retro::Rw11Virt.
Definition at line 72 of file Rw11VirtEthTap.cpp.
References Retro::RlinkServer::AddPollHandler(), fFd, Retro::Rw11Virt::fUrl, Retro::RerrMsg::Init(), Retro::RerrMsg::InitErrno(), Retro::RparseUrl::Path(), RcvPollHandler(), Retro::Rw11Virt::Server(), and Retro::RparseUrl::Set().
FIXME_docs.
Implements Retro::Rw11VirtEth.
Definition at line 110 of file Rw11VirtEthTap.cpp.
References fFd, Retro::Rw11Virt::fStats, Retro::Rstats::Inc(), Retro::RerrMsg::InitErrno(), Retro::Rw11VirtEth::kStatNVTSnd, Retro::Rw11VirtEth::kStatNVTSndByt, Retro::RethBuf::Size(), and Retro::RethBuf::Write().
|
virtual |
FIXME_docs.
Reimplemented from Retro::Rw11VirtEth.
Definition at line 146 of file Rw11VirtEthTap.cpp.
References Retro::Rw11VirtEth::Dump(), and fFd.
|
protected |
FIXME_docs.
Definition at line 125 of file Rw11VirtEthTap.cpp.
References fFd, Retro::Rw11VirtEth::fRcvCb, Retro::Rw11Virt::fStats, Retro::Rstats::Inc(), Retro::Rw11VirtEth::kStatNVTRcvByt, and Retro::Rw11VirtEth::kStatNVTRcvPoll.
Referenced by Open().
|
protected |
fd for pty master side
Definition at line 42 of file Rw11VirtEthTap.hpp.
Referenced by Dump(), Open(), RcvPollHandler(), Snd(), and ~Rw11VirtEthTap().