|
w11 - cpp 0.794
Backend server for Rlink and w11
|
FIXME_docs. More...
#include <Rw11VirtEth.hpp>
Public Types | |
| 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 } |
Public Member Functions | |
| 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. | |
Static Public Member Functions | |
| static std::unique_ptr< Rw11VirtEth > | New (const std::string &url, Rw11Unit *punit, RerrMsg &emsg) |
| FIXME_docs. | |
Protected Attributes | |
| 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 | |
FIXME_docs.
Definition at line 31 of file Rw11VirtEth.hpp.
| typedef std::function<bool(std::shared_ptr<RethBuf>&)> Retro::Rw11VirtEth::rcvcbfo_t |
Definition at line 33 of file Rw11VirtEth.hpp.
| Enumerator | |
|---|---|
| kStatNVTRcvPoll | |
| kStatNVTSnd | |
| kStatNVTRcvByt | |
| kStatNVTSndByt | |
| kDimStat | |
Definition at line 50 of file Rw11VirtEth.hpp.
|
explicit |
Default constructor.
Definition at line 36 of file Rw11VirtEth.cpp.
References Retro::Rstats::Define(), Retro::Rw11Virt::fStats, kStatNVTRcvByt, kStatNVTRcvPoll, kStatNVTSnd, and kStatNVTSndByt.
| Retro::Rw11VirtEth::~Rw11VirtEth | ( | ) |
Destructor.
Definition at line 50 of file Rw11VirtEth.cpp.
|
inlinevirtual |
|
inline |
FIXME_docs.
Definition at line 31 of file Rw11VirtEth.ipp.
References fRcvCb.
Referenced by Retro::Rw11UnitDEUNA::AttachDone().
Implemented in Retro::Rw11VirtEthTap.
Referenced by Retro::Rw11CntlDEUNA::TxRingHandler().
|
virtual |
FIXME_docs.
Reimplemented from Retro::Rw11Virt.
Reimplemented in Retro::Rw11VirtEthTap.
Definition at line 78 of file Rw11VirtEth.cpp.
References Retro::Rw11Virt::Dump(), and fChannelId.
Referenced by Retro::Rw11VirtEthTap::Dump().
|
static |
FIXME_docs.
Definition at line 56 of file Rw11VirtEth.cpp.
References Retro::RparseUrl::FindScheme(), and Retro::RerrMsg::Init().
|
protected |
|
protected |
receive callback fobj
Definition at line 60 of file Rw11VirtEth.hpp.
Referenced by Retro::Rw11VirtEthTap::RcvPollHandler(), and SetupRcvCallback().