21#ifndef included_Retro_Rw11UnitTerm
22#define included_Retro_Rw11UnitTerm 1
48 void SetLog(
const std::string& fname);
49 const std::string&
Log()
const;
51 void StatIncRx(uint8_t ichr,
bool ferr=
false);
52 void StatIncTx(uint8_t ochr,
bool ferr=
false);
57 virtual size_t Rcv(uint8_t* buf,
size_t count);
59 virtual bool Snd(
const uint8_t* buf,
size_t count);
61 virtual bool RcvCallback(
const uint8_t* buf,
size_t count);
64 virtual void Dump(std::ostream& os,
int ind=0,
const char* text=0,
virtual void Dump(std::ostream &os, int ind=0, const char *text=0, int detail=0) const
FIXME_docs.
void StatIncTx(uint8_t ochr, bool ferr=false)
FIXME_docs.
bool ToEnpc() const
FIXME_docs.
void SetToEnpc(bool toenpc)
FIXME_docs.
bool fTi7bit
discard parity bit on input
virtual void AttachDone()
FIXME_docs.
void SetTo7bit(bool to7bit)
FIXME_docs.
virtual bool RcvQueueEmpty()
FIXME_docs.
virtual bool Snd(const uint8_t *buf, size_t count)
FIXME_docs.
bool fLogOptCrlf
log file: crlf option given
virtual bool RcvCallback(const uint8_t *buf, size_t count)
FIXME_docs.
std::ofstream fLogStream
log file stream
virtual size_t RcvQueueSize()
FIXME_docs.
bool Ti7bit() const
FIXME_docs.
virtual uint8_t RcvQueueNext()
FIXME_docs.
bool fLogCrPend
log file: cr pending
bool fTo7bit
discard parity bit on output
virtual void WakeupCntl()=0
bool To7bit() const
FIXME_docs.
std::string fLogFname
log file name
@ kStatNTx8bit
tx with bit 8 set
@ kStatNPreAttDrop
dropped prior to attach
@ kStatNRxFerr
rx frame error
@ kStatNRxLine
rx lines (CR)
@ kStatNRx8bit
rx with bit 8 set
@ kStatNTxFerr
tx frame error
@ kStatNTxNull
tx null char
@ kStatNTxLine
tx lines (LF)
@ kStatNRxNull
rx null char
@ kStatNTxChar
tx char (no ferr)
@ kStatNRxChar
rx char (no ferr)
bool fToEnpc
escape non-printables on output
const std::string & Log() const
FIXME_docs.
void SetTi7bit(bool ti7bit)
FIXME_docs.
void SetLog(const std::string &fname)
FIXME_docs.
~Rw11UnitTerm()
Destructor.
void StatIncRx(uint8_t ichr, bool ferr=false)
FIXME_docs.
std::deque< uint8_t > fRcvQueue
input queue
virtual size_t Rcv(uint8_t *buf, size_t count)
FIXME_docs.
bool fLogLfLast
log file: lf was last char
const std::string & ChannelId() const
FIXME_docs.
Implemenation (inline) of Rw11UnitVirt.
Declaration of class ReventLoop.