w11 - cpp 0.794
Backend server for Rlink and w11
Loading...
Searching...
No Matches
RlinkPort.ipp
Go to the documentation of this file.
1// $Id: RlinkPort.ipp 1186 2019-07-12 17:49:59Z mueller $
2// SPDX-License-Identifier: GPL-3.0-or-later
3// Copyright 2011-2019 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4//
5// Revision History:
6// Date Rev Version Comment
7// 2019-06-07 1160 1.3.2 Stats() not longer const
8// 2018-12-07 1078 1.3.1 use std::shared_ptr instead of boost
9// 2015-04-11 666 1.3 add fXon, XonEnable()
10// 2013-05-01 513 1.2.1 fTraceLevel now uint32_t
11// 2013-02-23 492 1.2 use RparseUrl
12// 2013-02-22 491 1.1 use new RlogFile/RlogMsg interfaces
13// 2011-03-27 375 1.0 Initial version
14// 2011-01-15 356 0.1 First draft
15// ---------------------------------------------------------------------------
16
21// all method definitions in namespace Retro
22namespace Retro {
23
24//------------------------------------------+-----------------------------------
26
27inline bool RlinkPort::IsOpen() const
28{
29 return fIsOpen;
30}
31
32//------------------------------------------+-----------------------------------
34
35inline const Retro::RparseUrl& RlinkPort::Url() const
36{
37 return fUrl;
38}
39
40//------------------------------------------+-----------------------------------
42
43inline bool RlinkPort::XonEnable() const
44{
45 return fXon;
46}
47
48//------------------------------------------+-----------------------------------
50
51inline int RlinkPort::FdRead() const
52{
53 return fFdRead;
54}
55
56//------------------------------------------+-----------------------------------
58
59inline int RlinkPort::FdWrite() const
60{
61 return fFdWrite;
62}
63
64//------------------------------------------+-----------------------------------
66
67inline void RlinkPort::SetLogFile(const std::shared_ptr<RlogFile>& splog)
68{
69 fspLog = splog;
70 return;
71}
72
73//------------------------------------------+-----------------------------------
75
76inline void RlinkPort::SetTraceLevel(uint32_t level)
77{
78 fTraceLevel = level;
79 return;
80}
81
82//------------------------------------------+-----------------------------------
84
85inline uint32_t RlinkPort::TraceLevel() const
86{
87 return fTraceLevel;
88}
89
90//------------------------------------------+-----------------------------------
92
94{
95 return fStats;
96}
97
98} // end namespace Retro
int FdWrite() const
FIXME_docs.
Definition: RlinkPort.ipp:59
int fFdWrite
fd for write
Definition: RlinkPort.hpp:109
void SetTraceLevel(uint32_t level)
FIXME_docs.
Definition: RlinkPort.ipp:76
bool IsOpen() const
FIXME_docs.
Definition: RlinkPort.ipp:27
const RparseUrl & Url() const
FIXME_docs.
Definition: RlinkPort.ipp:35
RparseUrl fUrl
parsed url
Definition: RlinkPort.hpp:106
Rstats & Stats()
FIXME_docs.
Definition: RlinkPort.ipp:93
int fFdRead
fd for read
Definition: RlinkPort.hpp:108
bool fIsOpen
is open flag
Definition: RlinkPort.hpp:105
std::shared_ptr< RlogFile > fspLog
log file ptr
Definition: RlinkPort.hpp:110
bool fXon
xon attribute set
Definition: RlinkPort.hpp:107
bool XonEnable() const
FIXME_docs.
Definition: RlinkPort.ipp:43
void SetLogFile(const std::shared_ptr< RlogFile > &splog)
FIXME_docs.
Definition: RlinkPort.ipp:67
uint32_t TraceLevel() const
FIXME_docs.
Definition: RlinkPort.ipp:85
Rstats fStats
statistics
Definition: RlinkPort.hpp:114
uint32_t fTraceLevel
trace level
Definition: RlinkPort.hpp:111
int FdRead() const
FIXME_docs.
Definition: RlinkPort.ipp:51
FIXME_docs.
Definition: RparseUrl.hpp:27
FIXME_docs.
Definition: Rstats.hpp:28
Declaration of class ReventLoop.
Definition: ReventLoop.cpp:47