Remote Call Framework 3.4
RCF::ServerTransport Class Referenceabstract

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...
 

Detailed Description

Base class for all server transports.

Member Function Documentation

◆ getTransportType()

virtual TransportType RCF::ServerTransport::getTransportType ( )
pure virtual

Returns the transport type of this server transport.

◆ setMaxIncomingMessageLength()

void RCF::ServerTransport::setMaxIncomingMessageLength ( std::size_t  maxMessageLength)

Sets maximum incoming message length. Incoming messages that are larger than this size will be dropped.

◆ getMaxIncomingMessageLength()

std::size_t RCF::ServerTransport::getMaxIncomingMessageLength ( ) const

Returns maximum incoming message length.

◆ setConnectionLimit()

void RCF::ServerTransport::setConnectionLimit ( std::size_t  connectionLimit)

Sets the maximum number of simultaneous connections to the server transport.

◆ getConnectionLimit()

std::size_t RCF::ServerTransport::getConnectionLimit ( ) const

Returns the maximum number of simultaneous connections to the server transport.

◆ setInitialNumberOfConnections()

void RCF::ServerTransport::setInitialNumberOfConnections ( std::size_t  initialNumberOfConnections)

Sets the initial number of listening connections that are created when the server transport starts.

◆ getInitialNumberOfConnections()

std::size_t RCF::ServerTransport::getInitialNumberOfConnections ( ) const

Returns the initial number of listening connections that are created when the server transport starts.

◆ setThreadPool()

void RCF::ServerTransport::setThreadPool ( ThreadPoolPtr  threadPoolPtr)

Sets the thread pool that the server transport will use.

◆ setSupportedProtocols()

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.

◆ getSupportedProtocols()

const std::vector<TransportProtocol>& RCF::ServerTransport::getSupportedProtocols ( ) const

Returns the list of supported protocols for the server transport.


The documentation for this class was generated from the following file: