Remote Call Framework 3.4
RCF::ProxyEndpoint Class Reference

Represents a proxy endpoint. More...

#include <ProxyEndpoint.hpp>

Inheritance diagram for RCF::ProxyEndpoint:
RCF::Endpoint

Public Member Functions

 ProxyEndpoint (const Endpoint &proxyServer, const std::string &proxyEndpointName)
 Constructs a proxy endpoint. proxyServer is the endpoint of the proxy server. proxyEndpointName is the name the proxy endpoint, and must be unique among the proxy endpoints on the proxy server. More...
 
 ProxyEndpoint (RcfServer &proxyServer, const std::string &proxyEndpointName)
 Constructs a proxy endpoint. proxyServer is an in-process proxy server. proxyEndpointName is the name of the proxy endpoint, and must be unique among the proxy endpoints on the proxy server. More...
 

Detailed Description

Represents a proxy endpoint.

Proxy endpoints are used to facilitate bidirectional server communication. A proxy endpoint allows one RcfServer (the destination server) to establish TCP connections to another RcfServer (the proxy server), so that clients with access to the proxy RcfServer, are then able to make remote calls through to the target RcfServer. A RcfServer constructed with a proxy endpoint parameter will serve as the destination server, and will maintain a persistent connection to the proxy server. The proxy server is able to request further connections to be established, and these connections are then utilized by clients to connect to the destination server.

A RcfClient constructed with a proxy endpoint parameter, will request the proxy RcfServer for a connection to the destination server, and then utilizes that connection just as any other RcfClient<> would.

This allows RCF client connections to be established, in situations where direct TCP connections are not feasible, e.g. due to firewalls or NAT devices. It also allows a single RcfServer to serve as a gateway to other RcfServer instances.

Constructor & Destructor Documentation

◆ ProxyEndpoint() [1/2]

RCF::ProxyEndpoint::ProxyEndpoint ( const Endpoint proxyServer,
const std::string &  proxyEndpointName 
)

Constructs a proxy endpoint. proxyServer is the endpoint of the proxy server. proxyEndpointName is the name the proxy endpoint, and must be unique among the proxy endpoints on the proxy server.

◆ ProxyEndpoint() [2/2]

RCF::ProxyEndpoint::ProxyEndpoint ( RcfServer proxyServer,
const std::string &  proxyEndpointName 
)

Constructs a proxy endpoint. proxyServer is an in-process proxy server. proxyEndpointName is the name of the proxy endpoint, and must be unique among the proxy endpoints on the proxy server.


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