w11 - cpp 0.794
Backend server for Rlink and w11
Loading...
Searching...
No Matches
Retro::Rw11VirtEth Class Referenceabstract

FIXME_docs. More...

#include <Rw11VirtEth.hpp>

Inheritance diagram for Retro::Rw11VirtEth:
[legend]
Collaboration diagram for Retro::Rw11VirtEth:
[legend]

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
 
Rw11Virtoperator= (const Rw11Virt &)=delete
 
Rw11UnitUnit () const
 FIXME_docs.
 
Rw11CntlCntl () const
 FIXME_docs.
 
Rw11CpuCpu () const
 FIXME_docs.
 
Rw11W11 () const
 FIXME_docs.
 
RlinkServerServer () const
 FIXME_docs.
 
RlogFileLogFile () const
 FIXME_docs.
 
virtual bool WProt () const
 FIXME_docs.
 
const RparseUrlUrl () const
 FIXME_docs.
 
virtual bool Open (const std::string &url, RerrMsg &emsg)=0
 
RstatsStats ()
 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< Rw11VirtEthNew (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
Rw11UnitfpUnit
 back ref to unit
 
RparseUrl fUrl
 
bool fWProt
 write protected
 
Rstats fStats
 statistics
 

Detailed Description

FIXME_docs.

Definition at line 31 of file Rw11VirtEth.hpp.

Member Typedef Documentation

◆ rcvcbfo_t

typedef std::function<bool(std::shared_ptr<RethBuf>&)> Retro::Rw11VirtEth::rcvcbfo_t

Definition at line 33 of file Rw11VirtEth.hpp.

Member Enumeration Documentation

◆ stats

Enumerator
kStatNVTRcvPoll 
kStatNVTSnd 
kStatNVTRcvByt 
kStatNVTSndByt 
kDimStat 

Definition at line 50 of file Rw11VirtEth.hpp.

Constructor & Destructor Documentation

◆ Rw11VirtEth()

Retro::Rw11VirtEth::Rw11VirtEth ( Rw11Unit punit)
explicit

Default constructor.

Definition at line 36 of file Rw11VirtEth.cpp.

References Retro::Rstats::Define(), Retro::Rw11Virt::fStats, kStatNVTRcvByt, kStatNVTRcvPoll, kStatNVTSnd, and kStatNVTSndByt.

◆ ~Rw11VirtEth()

Retro::Rw11VirtEth::~Rw11VirtEth ( )

Destructor.

Definition at line 50 of file Rw11VirtEth.cpp.

Member Function Documentation

◆ ChannelId()

const std::string & Retro::Rw11VirtEth::ChannelId ( ) const
inlinevirtual

FIXME_docs.

Definition at line 22 of file Rw11VirtEth.ipp.

References fChannelId.

◆ SetupRcvCallback()

void Retro::Rw11VirtEth::SetupRcvCallback ( rcvcbfo_t &&  rcvcbfo)
inline

FIXME_docs.

Definition at line 31 of file Rw11VirtEth.ipp.

References fRcvCb.

Referenced by Retro::Rw11UnitDEUNA::AttachDone().

◆ Snd()

virtual bool Retro::Rw11VirtEth::Snd ( const RethBuf ebuf,
RerrMsg emsg 
)
pure virtual

◆ Dump()

void Retro::Rw11VirtEth::Dump ( std::ostream &  os,
int  ind = 0,
const char *  text = 0,
int  detail = 0 
) const
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().

◆ New()

std::unique_ptr< Rw11VirtEth > Retro::Rw11VirtEth::New ( const std::string &  url,
Rw11Unit punit,
RerrMsg emsg 
)
static

FIXME_docs.

Definition at line 56 of file Rw11VirtEth.cpp.

References Retro::RparseUrl::FindScheme(), and Retro::RerrMsg::Init().

Member Data Documentation

◆ fChannelId

std::string Retro::Rw11VirtEth::fChannelId
protected

channel id

Definition at line 59 of file Rw11VirtEth.hpp.

Referenced by ChannelId(), and Dump().

◆ fRcvCb

rcvcbfo_t Retro::Rw11VirtEth::fRcvCb
protected

receive callback fobj

Definition at line 60 of file Rw11VirtEth.hpp.

Referenced by Retro::Rw11VirtEthTap::RcvPollHandler(), and SetupRcvCallback().


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