Represents a proxy endpoint. More...
#include <ProxyEndpoint.hpp>
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... | |
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.
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.
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.