Remote Call Framework 3.4
ProxyEndpoint.hpp
1 
2 //******************************************************************************
3 // RCF - Remote Call Framework
4 //
5 // Copyright (c) 2005 - 2023, Delta V Software. All rights reserved.
6 // https://www.deltavsoft.com
7 //
8 // RCF is distributed under dual licenses - closed source or GPL.
9 // Consult your particular license for conditions of use.
10 //
11 // If you have not purchased a commercial license, you are using RCF under GPL terms.
12 //
13 // Version: 3.4
14 // Contact: support <at> deltavsoft.com
15 //
16 //******************************************************************************
17 
18 #ifndef INCLUDE_RCF_PROXYENDPOINT_HPP
19 #define INCLUDE_RCF_PROXYENDPOINT_HPP
20 
21 #include <RCF/Endpoint.hpp>
22 #include <RCF/Export.hpp>
23 
24 namespace RCF
25 {
26 
28 
33 
44 
45  class RCF_EXPORT ProxyEndpoint : public Endpoint
46  {
47  public:
48 
50  ProxyEndpoint(const Endpoint& proxyServer, const std::string& proxyEndpointName);
51 
53  ProxyEndpoint(RcfServer& proxyServer, const std::string& proxyEndpointName);
54 
55  virtual std::unique_ptr<ServerTransport> createServerTransport() const;
56  virtual std::unique_ptr<ClientTransport> createClientTransport() const;
57  virtual EndpointPtr clone() const;
58  virtual std::string asString() const;
59 
60  virtual std::string getProxyEndpointName() const;
61 
62  private:
63 
64  EndpointPtr mProxyEndpointPtr;
65  RcfServer * mpServer = NULL;
66  std::string mProxyEndpointName;
67 
68  };
69 
70 }
71 
72 #endif // ! INCLUDE_RCF_PROXYENDPOINT_HPP
std::shared_ptr< Endpoint > EndpointPtr
Reference counted wrapper for RCF::Endpoint.
Definition: RcfFwd.hpp:117
Provides RCF server-side functionality.
Definition: RcfServer.hpp:53
Base class for all network endpoint types.
Definition: Endpoint.hpp:40
Definition: AmiIoHandler.hpp:23
Represents a proxy endpoint.
Definition: ProxyEndpoint.hpp:45