Base class for all server transports. More...
#include <ServerTransport.hpp>
Inherited by RCF::AsioServerTransport, RCF::ProxyEndpointTransport, and RCF::UdpServerTransport.
Public Member Functions | |
virtual TransportType | getTransportType ()=0 |
Returns the transport type of this server transport. More... | |
void | setMaxIncomingMessageLength (std::size_t maxMessageLength) |
std::size_t | getMaxIncomingMessageLength () const |
Returns maximum incoming message length. More... | |
void | setConnectionLimit (std::size_t connectionLimit) |
Sets the maximum number of simultaneous connections to the server transport. More... | |
std::size_t | getConnectionLimit () const |
Returns the maximum number of simultaneous connections to the server transport. More... | |
void | setInitialNumberOfConnections (std::size_t initialNumberOfConnections) |
Sets the initial number of listening connections that are created when the server transport starts. More... | |
std::size_t | getInitialNumberOfConnections () const |
Returns the initial number of listening connections that are created when the server transport starts. More... | |
void | setThreadPool (ThreadPoolPtr threadPoolPtr) |
Sets the thread pool that the server transport will use. More... | |
void | setSupportedProtocols (const std::vector< TransportProtocol > &protocols) |
const std::vector< TransportProtocol > & | getSupportedProtocols () const |
Returns the list of supported protocols for the server transport. More... | |
Base class for all server transports.
|
pure virtual |
Returns the transport type of this server transport.
void RCF::ServerTransport::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::ServerTransport::getMaxIncomingMessageLength | ( | ) | const |
Returns maximum incoming message length.
void RCF::ServerTransport::setConnectionLimit | ( | std::size_t | connectionLimit | ) |
Sets the maximum number of simultaneous connections to the server transport.
std::size_t RCF::ServerTransport::getConnectionLimit | ( | ) | const |
Returns the maximum number of simultaneous connections to the server transport.
void RCF::ServerTransport::setInitialNumberOfConnections | ( | std::size_t | initialNumberOfConnections | ) |
Sets the initial number of listening connections that are created when the server transport starts.
std::size_t RCF::ServerTransport::getInitialNumberOfConnections | ( | ) | const |
Returns the initial number of listening connections that are created when the server transport starts.
void RCF::ServerTransport::setThreadPool | ( | ThreadPoolPtr | threadPoolPtr | ) |
Sets the thread pool that the server transport will use.
void RCF::ServerTransport::setSupportedProtocols | ( | const std::vector< TransportProtocol > & | protocols | ) |
Sets the list of supported protocols the server transport supports. Clients that connect without using one of the supported protocols are dropped. If the list of supported protocols is empty, all protocols are allowed.
const std::vector<TransportProtocol>& RCF::ServerTransport::getSupportedProtocols | ( | ) | const |
Returns the list of supported protocols for the server transport.