|
rogue
|
RSSI client convenience wrapper. More...
#include <Client.h>
Public Member Functions | |
| Client (uint32_t segSize) | |
| Constructs an RSSI client bundle. | |
| ~Client () | |
| Destroys the client bundle. | |
| std::shared_ptr< rogue::protocols::rssi::Transport > | transport () |
| Returns the transport endpoint. | |
| std::shared_ptr< rogue::protocols::rssi::Application > | application () |
| Returns the application endpoint. | |
| bool | getOpen () |
| Returns whether the link is in open state. | |
| uint32_t | getDownCount () |
| Returns the down-transition counter. | |
| uint32_t | getDropCount () |
| Returns the dropped-frame counter. | |
| uint32_t | getRetranCount () |
| Returns the retransmit counter. | |
| bool | getLocBusy () |
| Returns the local busy state. | |
| uint32_t | getLocBusyCnt () |
| Returns the local busy event counter. | |
| bool | getRemBusy () |
| Returns the remote busy state. | |
| uint32_t | getRemBusyCnt () |
| Returns the remote busy event counter. | |
| void | setLocTryPeriod (uint32_t val) |
| Sets the local connection retry period in microseconds. | |
| uint32_t | getLocTryPeriod () |
| Returns the local connection retry period in microseconds. | |
| void | setLocMaxBuffers (uint8_t val) |
| Sets the local maximum outstanding-buffer count. | |
| uint8_t | getLocMaxBuffers () |
| Returns the local maximum outstanding-buffer count. | |
| void | setLocMaxSegment (uint16_t val) |
| Sets the local maximum segment size in bytes. | |
| uint16_t | getLocMaxSegment () |
| Returns the local maximum segment size in bytes. | |
| void | setLocCumAckTout (uint16_t val) |
| Sets the local cumulative-ACK timeout. | |
| uint16_t | getLocCumAckTout () |
| Returns the local cumulative-ACK timeout. | |
| void | setLocRetranTout (uint16_t val) |
| Sets the local retransmit timeout. | |
| uint16_t | getLocRetranTout () |
| Returns the local retransmit timeout. | |
| void | setLocNullTout (uint16_t val) |
| Sets the local null-segment timeout. | |
| uint16_t | getLocNullTout () |
| Returns the local null-segment timeout. | |
| void | setLocMaxRetran (uint8_t val) |
| Sets the local maximum retransmit count. | |
| uint8_t | getLocMaxRetran () |
| Returns the local maximum retransmit count. | |
| void | setLocMaxCumAck (uint8_t val) |
| Sets the local maximum cumulative-ACK interval. | |
| uint8_t | getLocMaxCumAck () |
| Returns the local maximum cumulative-ACK interval. | |
| uint8_t | curMaxBuffers () |
| Returns the negotiated maximum outstanding-buffer count. | |
| uint16_t | curMaxSegment () |
| Returns the negotiated maximum segment size in bytes. | |
| uint16_t | curCumAckTout () |
| Returns the negotiated cumulative-ACK timeout. | |
| uint16_t | curRetranTout () |
| Returns the negotiated retransmit timeout. | |
| uint16_t | curNullTout () |
| Returns the negotiated null-segment timeout. | |
| uint8_t | curMaxRetran () |
| Returns the negotiated maximum retransmit count. | |
| uint8_t | curMaxCumAck () |
| Returns the negotiated maximum cumulative-ACK interval. | |
| void | resetCounters () |
| Resets runtime counters. | |
| void | setTimeout (uint32_t timeout) |
| Sets timeout in microseconds for frame transmits. | |
| void | stop () |
| Stops the RSSI connection. | |
| void | start () |
| Starts or restarts RSSI connection establishment. | |
Static Public Member Functions | |
| static std::shared_ptr< rogue::protocols::rssi::Client > | create (uint32_t segSize) |
| Creates an RSSI client bundle. | |
| static void | setup_python () |
| Registers Python bindings for this class. | |
RSSI client convenience wrapper.
Bundles transport, application, and controller components for client-side RSSI links. Protocol reference: https://confluence.slac.stanford.edu/x/1IyfD
Construction wires the internal components together: Transport <-> Controller <-> Application.
|
explicit |
Constructs an RSSI client bundle.
Creator.
This constructor is a low-level C++ allocation path. Prefer create() when shared ownership or Python exposure is required.
| segSize | Initial local maximum segment size. |
Definition at line 88 of file Client.cpp.
| rogue::protocols::rssi::Client::~Client | ( | ) |
| rogue::protocols::rssi::ApplicationPtr rogue::protocols::rssi::Client::application | ( | ) |
Returns the application endpoint.
Application module.
Definition at line 108 of file Client.cpp.
|
static |
Creates an RSSI client bundle.
Class creation.
Parameter semantics are identical to the constructor; see Client() for bundle-construction details. This static factory is the preferred construction path when the object is shared across Rogue graph connections or exposed to Python. It returns std::shared_ptr ownership compatible with Rogue pointer typedefs.
| segSize | Initial local maximum segment size. |
Description:
This file is part of the rogue software platform. It is subject to the license terms in the LICENSE.txt file found in the top-level directory of this distribution and at: https://confluence.slac.stanford.edu/display/ppareg/LICENSE.html. No part of the rogue software platform, including this file, may be copied, modified, propagated, or distributed except according to the terms
Definition at line 38 of file Client.cpp.
| uint16_t rogue::protocols::rssi::Client::curCumAckTout | ( | ) |
Returns the negotiated cumulative-ACK timeout.
Definition at line 224 of file Client.cpp.
| uint8_t rogue::protocols::rssi::Client::curMaxBuffers | ( | ) |
Returns the negotiated maximum outstanding-buffer count.
Definition at line 216 of file Client.cpp.
| uint8_t rogue::protocols::rssi::Client::curMaxCumAck | ( | ) |
Returns the negotiated maximum cumulative-ACK interval.
Definition at line 240 of file Client.cpp.
| uint8_t rogue::protocols::rssi::Client::curMaxRetran | ( | ) |
Returns the negotiated maximum retransmit count.
Definition at line 236 of file Client.cpp.
| uint16_t rogue::protocols::rssi::Client::curMaxSegment | ( | ) |
Returns the negotiated maximum segment size in bytes.
Definition at line 220 of file Client.cpp.
| uint16_t rogue::protocols::rssi::Client::curNullTout | ( | ) |
Returns the negotiated null-segment timeout.
Definition at line 232 of file Client.cpp.
| uint16_t rogue::protocols::rssi::Client::curRetranTout | ( | ) |
Returns the negotiated retransmit timeout.
Definition at line 228 of file Client.cpp.
| uint32_t rogue::protocols::rssi::Client::getDownCount | ( | ) |
Returns the down-transition counter.
Get Down Count.
Definition at line 118 of file Client.cpp.
| uint32_t rogue::protocols::rssi::Client::getDropCount | ( | ) |
Returns the dropped-frame counter.
Get Drop Count.
Definition at line 123 of file Client.cpp.
| bool rogue::protocols::rssi::Client::getLocBusy | ( | ) |
Returns the local busy state.
Get locBusy.
Definition at line 133 of file Client.cpp.
| uint32_t rogue::protocols::rssi::Client::getLocBusyCnt | ( | ) |
Returns the local busy event counter.
Get locBusyCnt.
Definition at line 138 of file Client.cpp.
| uint16_t rogue::protocols::rssi::Client::getLocCumAckTout | ( | ) |
Returns the local cumulative-ACK timeout.
Definition at line 180 of file Client.cpp.
| uint8_t rogue::protocols::rssi::Client::getLocMaxBuffers | ( | ) |
Returns the local maximum outstanding-buffer count.
Definition at line 164 of file Client.cpp.
| uint8_t rogue::protocols::rssi::Client::getLocMaxCumAck | ( | ) |
Returns the local maximum cumulative-ACK interval.
Definition at line 212 of file Client.cpp.
| uint8_t rogue::protocols::rssi::Client::getLocMaxRetran | ( | ) |
Returns the local maximum retransmit count.
Definition at line 204 of file Client.cpp.
| uint16_t rogue::protocols::rssi::Client::getLocMaxSegment | ( | ) |
Returns the local maximum segment size in bytes.
Definition at line 172 of file Client.cpp.
| uint16_t rogue::protocols::rssi::Client::getLocNullTout | ( | ) |
Returns the local null-segment timeout.
Definition at line 196 of file Client.cpp.
| uint16_t rogue::protocols::rssi::Client::getLocRetranTout | ( | ) |
Returns the local retransmit timeout.
Definition at line 188 of file Client.cpp.
| uint32_t rogue::protocols::rssi::Client::getLocTryPeriod | ( | ) |
Returns the local connection retry period in microseconds.
Definition at line 156 of file Client.cpp.
| bool rogue::protocols::rssi::Client::getOpen | ( | ) |
Returns whether the link is in open state.
Get state.
Definition at line 113 of file Client.cpp.
| bool rogue::protocols::rssi::Client::getRemBusy | ( | ) |
Returns the remote busy state.
Get remBusy.
Definition at line 143 of file Client.cpp.
| uint32_t rogue::protocols::rssi::Client::getRemBusyCnt | ( | ) |
Returns the remote busy event counter.
Get remBusyCnt.
Definition at line 148 of file Client.cpp.
| uint32_t rogue::protocols::rssi::Client::getRetranCount | ( | ) |
Returns the retransmit counter.
Get Retran Count.
Definition at line 128 of file Client.cpp.
| void rogue::protocols::rssi::Client::resetCounters | ( | ) |
Resets runtime counters.
Definition at line 244 of file Client.cpp.
| void rogue::protocols::rssi::Client::setLocCumAckTout | ( | uint16_t | val | ) |
Sets the local cumulative-ACK timeout.
Definition at line 176 of file Client.cpp.
| void rogue::protocols::rssi::Client::setLocMaxBuffers | ( | uint8_t | val | ) |
Sets the local maximum outstanding-buffer count.
Definition at line 160 of file Client.cpp.
| void rogue::protocols::rssi::Client::setLocMaxCumAck | ( | uint8_t | val | ) |
Sets the local maximum cumulative-ACK interval.
Definition at line 208 of file Client.cpp.
| void rogue::protocols::rssi::Client::setLocMaxRetran | ( | uint8_t | val | ) |
Sets the local maximum retransmit count.
Definition at line 200 of file Client.cpp.
| void rogue::protocols::rssi::Client::setLocMaxSegment | ( | uint16_t | val | ) |
Sets the local maximum segment size in bytes.
Definition at line 168 of file Client.cpp.
| void rogue::protocols::rssi::Client::setLocNullTout | ( | uint16_t | val | ) |
Sets the local null-segment timeout.
Definition at line 192 of file Client.cpp.
| void rogue::protocols::rssi::Client::setLocRetranTout | ( | uint16_t | val | ) |
Sets the local retransmit timeout.
Definition at line 184 of file Client.cpp.
| void rogue::protocols::rssi::Client::setLocTryPeriod | ( | uint32_t | val | ) |
Sets the local connection retry period in microseconds.
Definition at line 152 of file Client.cpp.
| void rogue::protocols::rssi::Client::setTimeout | ( | uint32_t | timeout | ) |
Sets timeout in microseconds for frame transmits.
Set timeout for frame transmits in microseconds.
| timeout | Timeout in microseconds. |
Definition at line 249 of file Client.cpp.
|
static |
Registers Python bindings for this class.
Definition at line 43 of file Client.cpp.
| void rogue::protocols::rssi::Client::start | ( | ) |
| void rogue::protocols::rssi::Client::stop | ( | ) |
| rogue::protocols::rssi::TransportPtr rogue::protocols::rssi::Client::transport | ( | ) |
Returns the transport endpoint.
Get transport interface.
Definition at line 103 of file Client.cpp.