Remote Call Framework 3.0
ProxyEndpoint.hpp
1 
2 //******************************************************************************
3 // RCF - Remote Call Framework
4 //
5 // Copyright (c) 2005 - 2018, Delta V Software. All rights reserved.
6 // http://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
12 // under GPL terms.
13 //
14 // Version: 3.0
15 // Contact: support <at> deltavsoft.com
16 //
17 //******************************************************************************
18 
19 #ifndef INCLUDE_RCF_PROXYENDPOINT_HPP
20 #define INCLUDE_RCF_PROXYENDPOINT_HPP
21 
22 #include <RCF/Endpoint.hpp>
23 #include <RCF/Export.hpp>
24 
25 namespace RCF
26 {
27 
29 
34 
44 
45  class RCF_EXPORT ProxyEndpoint : public Endpoint
46  {
47  public:
48 
49  ProxyEndpoint(const Endpoint& ep, const std::string& proxyEndpointName);
50  ProxyEndpoint(RcfServer& server, const std::string& proxyEndpointName);
51 
52  virtual std::unique_ptr<ServerTransport> createServerTransport() const;
53  virtual std::unique_ptr<ClientTransport> createClientTransport() const;
54  virtual EndpointPtr clone() const;
55  virtual std::string asString() const;
56 
57  private:
58 
59  const Endpoint * mpEndpoint = NULL;
60  RcfServer * mpServer = NULL;
61  std::string mProxyEndpointName;
62 
63  };
64 
65 }
66 
67 #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:54
Base class for all network endpoint types.
Definition: Endpoint.hpp:41
Definition: AmiIoHandler.hpp:24
Represents a proxy endpoint.
Definition: ProxyEndpoint.hpp:45