Base class for all client transports. More...
#include <ClientTransport.hpp>
Inherited by RCF::ConnectedClientTransport, RCF::MulticastClientTransport, and RCF::UdpClientTransport.
Public Member Functions | |
virtual TransportType | getTransportType ()=0 |
Returns the transport type of this client transport. More... | |
void | setMaxIncomingMessageLength (std::size_t maxMessageLength) |
std::size_t | getMaxIncomingMessageLength () const |
Returns maximum incoming message length. More... | |
void | setMaxOutgoingMessageLength (std::size_t maxMessageLength) |
std::size_t | getMaxOutgoingMessageLength () const |
Returns maximum outgoing message length. More... | |
std::size_t | getLastRequestSize () |
Returns the byte size of the last request sent on the client transport. More... | |
std::size_t | getLastResponseSize () |
Returns the byte size of the last response received on the client transport. More... | |
std::uint64_t | getRunningTotalBytesSent () |
Returns the running total of bytes sent on the client transport. More... | |
std::uint64_t | getRunningTotalBytesReceived () |
Returns the running total of bytes received on the client transport. More... | |
void | resetRunningTotals () |
Resets the bytes-sent and bytes-received running totals to zero. More... | |
Base class for all client transports.
|
pure virtual |
Returns the transport type of this client transport.
void RCF::ClientTransport::setMaxIncomingMessageLength | ( | std::size_t | maxMessageLength | ) |
Sets maximum incoming message length. Incoming messages that are larger than this size will be dropped.
std::size_t RCF::ClientTransport::getMaxIncomingMessageLength | ( | ) | const |
Returns maximum incoming message length.
void RCF::ClientTransport::setMaxOutgoingMessageLength | ( | std::size_t | maxMessageLength | ) |
Sets maximum outgoing message length. Outgoing messages that are larger than this size will trigger a client side exception.
std::size_t RCF::ClientTransport::getMaxOutgoingMessageLength | ( | ) | const |
Returns maximum outgoing message length.
std::size_t RCF::ClientTransport::getLastRequestSize | ( | ) |
Returns the byte size of the last request sent on the client transport.
std::size_t RCF::ClientTransport::getLastResponseSize | ( | ) |
Returns the byte size of the last response received on the client transport.
std::uint64_t RCF::ClientTransport::getRunningTotalBytesSent | ( | ) |
Returns the running total of bytes sent on the client transport.
std::uint64_t RCF::ClientTransport::getRunningTotalBytesReceived | ( | ) |
Returns the running total of bytes received on the client transport.
void RCF::ClientTransport::resetRunningTotals | ( | ) |
Resets the bytes-sent and bytes-received running totals to zero.