Remote Call Framework 3.1
ProxyEndpoint.hpp
1 
2 //******************************************************************************
3 // RCF - Remote Call Framework
4 //
5 // Copyright (c) 2005 - 2019, 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.1
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 
45 
46  class RCF_EXPORT ProxyEndpoint : public Endpoint
47  {
48  public:
49 
51  ProxyEndpoint(const Endpoint& proxyServer, const std::string& proxyEndpointName);
52 
54  ProxyEndpoint(RcfServer& proxyServer, const std::string& proxyEndpointName);
55 
56  virtual std::unique_ptr<ServerTransport> createServerTransport() const;
57  virtual std::unique_ptr<ClientTransport> createClientTransport() const;
58  virtual EndpointPtr clone() const;
59  virtual std::string asString() const;
60 
61  virtual std::string getProxyEndpointName() const;
62 
63  private:
64 
65  EndpointPtr mProxyEndpointPtr;
66  RcfServer * mpServer = NULL;
67  std::string mProxyEndpointName;
68 
69  };
70 
71 }
72 
73 #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:46