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

FIXME_docs. More...

#include <Rw11VirtTermTcp.hpp>

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

Public Types

enum  stats {
  kStatNVTPreConSave = Rw11VirtTerm::kDimStat , kStatNVTPreConDrop , kStatNVTListenPoll , kStatNVTAccept ,
  kStatNVTRcvRaw , kStatNVTSndRaw , kDimStat
}
 
- 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 }
 

Public Member Functions

 Rw11VirtTermTcp (Rw11Unit *punit)
 Default constructor.
 
 ~Rw11VirtTermTcp ()
 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 Types

enum  telnet_state {
  ts_Closed = 0 , ts_Listen , ts_Stream , ts_Iac ,
  ts_Cmd , ts_Subneg , ts_Subiac
}
 

Protected Member Functions

bool Connected () const
 FIXME_docs.
 
int ListenPollHandler (const pollfd &pfd)
 FIXME_docs.
 
int RcvPollHandler (const pollfd &pfd)
 FIXME_docs.
 

Protected Attributes

int fFdListen
 
int fFd
 
telnet_state fState
 
bool fTcpTrace
 
std::deque< uint8_t > fSndPreConQue
 
- 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
 

Static Protected Attributes

static const uint8_t kCode_NULL = 0
 
static const uint8_t kCode_LF = 10
 
static const uint8_t kCode_CR = 13
 
static const uint8_t kCode_ESC = 27
 
static const uint8_t kCode_SE = 240
 
static const uint8_t kCode_NOP = 241
 
static const uint8_t kCode_IP = 244
 
static const uint8_t kCode_GA = 249
 
static const uint8_t kCode_SB = 250
 
static const uint8_t kCode_WILL = 251
 
static const uint8_t kCode_WONT = 252
 
static const uint8_t kCode_DO = 253
 
static const uint8_t kCode_DONT = 254
 
static const uint8_t kCode_IAC = 255
 
static const uint8_t kOpt_BIN = 0
 
static const uint8_t kOpt_ECHO = 1
 
static const uint8_t kOpt_SGA = 3
 
static const uint8_t kOpt_TTYP = 24
 
static const uint8_t kOpt_LINE = 34
 
static const size_t kPreConQue_limit = 65536
 

Additional Inherited Members

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

Implemenation (inline) of Rw11VirtTermTcp.

FIXME_docs

Definition at line 27 of file Rw11VirtTermTcp.hpp.

Member Enumeration Documentation

◆ stats

Enumerator
kStatNVTPreConSave 
kStatNVTPreConDrop 
kStatNVTListenPoll 
kStatNVTAccept 
kStatNVTRcvRaw 
kStatNVTSndRaw 
kDimStat 

Definition at line 41 of file Rw11VirtTermTcp.hpp.

◆ telnet_state

Enumerator
ts_Closed 
ts_Listen 
ts_Stream 
ts_Iac 
ts_Cmd 
ts_Subneg 
ts_Subiac 

Definition at line 81 of file Rw11VirtTermTcp.hpp.

Constructor & Destructor Documentation

◆ Rw11VirtTermTcp()

Retro::Rw11VirtTermTcp::Rw11VirtTermTcp ( Rw11Unit punit)
explicit

◆ ~Rw11VirtTermTcp()

Retro::Rw11VirtTermTcp::~Rw11VirtTermTcp ( )

Member Function Documentation

◆ Open()

◆ Snd()

◆ Dump()

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

◆ Connected()

bool Retro::Rw11VirtTermTcp::Connected ( ) const
inlineprotected

FIXME_docs.

Definition at line 27 of file Rw11VirtTermTcp.ipp.

References fFd.

Referenced by Snd(), and ~Rw11VirtTermTcp().

◆ ListenPollHandler()

◆ RcvPollHandler()

Member Data Documentation

◆ kCode_NULL

const uint8_t Retro::Rw11VirtTermTcp::kCode_NULL = 0
staticprotected

Definition at line 58 of file Rw11VirtTermTcp.hpp.

◆ kCode_LF

const uint8_t Retro::Rw11VirtTermTcp::kCode_LF = 10
staticprotected

Definition at line 59 of file Rw11VirtTermTcp.hpp.

◆ kCode_CR

const uint8_t Retro::Rw11VirtTermTcp::kCode_CR = 13
staticprotected

Definition at line 60 of file Rw11VirtTermTcp.hpp.

◆ kCode_ESC

const uint8_t Retro::Rw11VirtTermTcp::kCode_ESC = 27
staticprotected

Definition at line 61 of file Rw11VirtTermTcp.hpp.

◆ kCode_SE

const uint8_t Retro::Rw11VirtTermTcp::kCode_SE = 240
staticprotected

Definition at line 62 of file Rw11VirtTermTcp.hpp.

◆ kCode_NOP

const uint8_t Retro::Rw11VirtTermTcp::kCode_NOP = 241
staticprotected

Definition at line 63 of file Rw11VirtTermTcp.hpp.

◆ kCode_IP

const uint8_t Retro::Rw11VirtTermTcp::kCode_IP = 244
staticprotected

Definition at line 64 of file Rw11VirtTermTcp.hpp.

◆ kCode_GA

const uint8_t Retro::Rw11VirtTermTcp::kCode_GA = 249
staticprotected

Definition at line 65 of file Rw11VirtTermTcp.hpp.

◆ kCode_SB

const uint8_t Retro::Rw11VirtTermTcp::kCode_SB = 250
staticprotected

Definition at line 66 of file Rw11VirtTermTcp.hpp.

Referenced by RcvPollHandler().

◆ kCode_WILL

const uint8_t Retro::Rw11VirtTermTcp::kCode_WILL = 251
staticprotected

Definition at line 67 of file Rw11VirtTermTcp.hpp.

Referenced by ListenPollHandler(), and RcvPollHandler().

◆ kCode_WONT

const uint8_t Retro::Rw11VirtTermTcp::kCode_WONT = 252
staticprotected

Definition at line 68 of file Rw11VirtTermTcp.hpp.

Referenced by RcvPollHandler().

◆ kCode_DO

const uint8_t Retro::Rw11VirtTermTcp::kCode_DO = 253
staticprotected

Definition at line 69 of file Rw11VirtTermTcp.hpp.

Referenced by ListenPollHandler(), and RcvPollHandler().

◆ kCode_DONT

const uint8_t Retro::Rw11VirtTermTcp::kCode_DONT = 254
staticprotected

Definition at line 70 of file Rw11VirtTermTcp.hpp.

Referenced by RcvPollHandler().

◆ kCode_IAC

const uint8_t Retro::Rw11VirtTermTcp::kCode_IAC = 255
staticprotected

Definition at line 71 of file Rw11VirtTermTcp.hpp.

Referenced by ListenPollHandler(), RcvPollHandler(), and Snd().

◆ kOpt_BIN

const uint8_t Retro::Rw11VirtTermTcp::kOpt_BIN = 0
staticprotected

Definition at line 73 of file Rw11VirtTermTcp.hpp.

Referenced by ListenPollHandler().

◆ kOpt_ECHO

const uint8_t Retro::Rw11VirtTermTcp::kOpt_ECHO = 1
staticprotected

Definition at line 74 of file Rw11VirtTermTcp.hpp.

Referenced by ListenPollHandler().

◆ kOpt_SGA

const uint8_t Retro::Rw11VirtTermTcp::kOpt_SGA = 3
staticprotected

Definition at line 75 of file Rw11VirtTermTcp.hpp.

Referenced by ListenPollHandler().

◆ kOpt_TTYP

const uint8_t Retro::Rw11VirtTermTcp::kOpt_TTYP = 24
staticprotected

Definition at line 76 of file Rw11VirtTermTcp.hpp.

◆ kOpt_LINE

const uint8_t Retro::Rw11VirtTermTcp::kOpt_LINE = 34
staticprotected

Definition at line 77 of file Rw11VirtTermTcp.hpp.

Referenced by ListenPollHandler().

◆ kPreConQue_limit

const size_t Retro::Rw11VirtTermTcp::kPreConQue_limit = 65536
staticprotected

Definition at line 79 of file Rw11VirtTermTcp.hpp.

Referenced by Snd().

◆ fFdListen

int Retro::Rw11VirtTermTcp::fFdListen
protected

Definition at line 92 of file Rw11VirtTermTcp.hpp.

Referenced by Dump(), ListenPollHandler(), Open(), RcvPollHandler(), and ~Rw11VirtTermTcp().

◆ fFd

int Retro::Rw11VirtTermTcp::fFd
protected

◆ fState

telnet_state Retro::Rw11VirtTermTcp::fState
protected

Definition at line 94 of file Rw11VirtTermTcp.hpp.

Referenced by Dump(), ListenPollHandler(), Open(), and RcvPollHandler().

◆ fTcpTrace

bool Retro::Rw11VirtTermTcp::fTcpTrace
protected

Definition at line 95 of file Rw11VirtTermTcp.hpp.

Referenced by Dump(), ListenPollHandler(), Open(), and RcvPollHandler().

◆ fSndPreConQue

std::deque<uint8_t> Retro::Rw11VirtTermTcp::fSndPreConQue
protected

Definition at line 96 of file Rw11VirtTermTcp.hpp.

Referenced by Dump(), ListenPollHandler(), and Snd().


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