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

FIXME_docs. More...

#include <Rw11VirtTermPty.hpp>

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

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
 
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.
 

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
Rw11UnitfpUnit
 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< Rw11VirtTermNew (const std::string &url, Rw11Unit *punit, RerrMsg &emsg)
 FIXME_docs.
 

Detailed Description

FIXME_docs.

Definition at line 26 of file Rw11VirtTermPty.hpp.

Constructor & Destructor Documentation

◆ Rw11VirtTermPty()

Retro::Rw11VirtTermPty::Rw11VirtTermPty ( Rw11Unit punit)
explicit

Default constructor.

Definition at line 45 of file Rw11VirtTermPty.cpp.

◆ ~Rw11VirtTermPty()

Retro::Rw11VirtTermPty::~Rw11VirtTermPty ( )

Member Function Documentation

◆ Open()

bool Retro::Rw11VirtTermPty::Open ( const std::string &  url,
RerrMsg emsg 
)
virtual

◆ Snd()

bool Retro::Rw11VirtTermPty::Snd ( const uint8_t *  data,
size_t  count,
RerrMsg emsg 
)
virtual

◆ Dump()

void Retro::Rw11VirtTermPty::Dump ( std::ostream &  os,
int  ind = 0,
const char *  text = 0,
int  detail = 0 
) const
virtual

FIXME_docs.

Reimplemented from Retro::Rw11VirtTerm.

Definition at line 143 of file Rw11VirtTermPty.cpp.

References Retro::Rw11VirtTerm::Dump(), and fFd.

◆ RcvPollHandler()

int Retro::Rw11VirtTermPty::RcvPollHandler ( const pollfd &  pfd)
protected

Member Data Documentation

◆ fFd

int Retro::Rw11VirtTermPty::fFd
protected

fd for pty master side

Definition at line 43 of file Rw11VirtTermPty.hpp.

Referenced by Dump(), Open(), RcvPollHandler(), Snd(), and ~Rw11VirtTermPty().


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