w11 - cpp 0.794
Backend server for Rlink and w11
Loading...
Searching...
No Matches
RlinkPacketBuf.ipp
Go to the documentation of this file.
1// $Id: RlinkPacketBuf.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 2.0.1 Stats() not longer const
8// 2014-11-15 604 2.0 re-organize for rlink v4
9// 2011-04-02 375 1.0 Initial version
10// 2011-03-05 366 0.1 First draft
11// ---------------------------------------------------------------------------
12
17// all method definitions in namespace Retro
18namespace Retro {
19
20//------------------------------------------+-----------------------------------
22
23inline size_t RlinkPacketBuf::PktSize() const
24{
25 return fPktBuf.size();
26}
27
28//------------------------------------------+-----------------------------------
30
31inline void RlinkPacketBuf::SetFlagBit(uint32_t mask)
32{
33 fFlags |= mask;
34 return;
35}
36
37//------------------------------------------+-----------------------------------
39
40inline uint32_t RlinkPacketBuf::Flags() const
41{
42 return fFlags;
43}
44
45//------------------------------------------+-----------------------------------
47
48inline bool RlinkPacketBuf::TestFlag(uint32_t mask) const
49{
50 return (fFlags & mask) != 0;
51}
52
53//------------------------------------------+-----------------------------------
55
57{
58 return fStats;
59}
60
61//------------------------------------------+-----------------------------------
63
64inline void RlinkPacketBuf::ClearFlagBit(uint32_t mask)
65{
66 fFlags &= ~mask;
67 return;
68}
69
70} // end namespace Retro
size_t PktSize() const
FIXME_docs.
uint32_t Flags() const
FIXME_docs.
void SetFlagBit(uint32_t mask)
FIXME_docs.
Rstats & Stats()
FIXME_docs.
std::vector< uint8_t > fPktBuf
packet buffer
Rstats fStats
statistics
uint32_t fFlags
request/response flags
void ClearFlagBit(uint32_t mask)
FIXME_docs.
bool TestFlag(uint32_t mask) const
FIXME_docs.
FIXME_docs.
Definition: Rstats.hpp:28
Declaration of class ReventLoop.
Definition: ReventLoop.cpp:47