RCFProto
 All Classes Functions Typedefs
InProcessEndpoint.hpp
1 
2 //******************************************************************************
3 // RCF - Remote Call Framework
4 //
5 // Copyright (c) 2005 - 2013, 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: 2.0
15 // Contact: support <at> deltavsoft.com
16 //
17 //******************************************************************************
18 
19 #ifndef INCLUDE_RCF_INPROCESSENDPOINT_HPP
20 #define INCLUDE_RCF_INPROCESSENDPOINT_HPP
21 
22 #include <RCF/Endpoint.hpp>
23 #include <RCF/Export.hpp>
24 
25 namespace RCF {
26 
27  class RcfServer;
28 
29  class RCF_EXPORT InProcessEndpoint : public Endpoint
30  {
31  public:
32  InProcessEndpoint(RCF::RcfServer & server);
33  InProcessEndpoint(RCF::RcfServer & server, RCF::RcfServer & callbackServer);
34 
35  std::auto_ptr<ServerTransport> createServerTransport() const;
36  std::auto_ptr<ClientTransport> createClientTransport() const;
37  EndpointPtr clone() const;
38  std::string asString() const;
39 
40  private:
41  RcfServer & mServer;
42  RcfServer * mpCallbackServer;
43  };
44 
45 } // namespace RCF
46 
47 #endif // ! INCLUDE_RCF_INPROCESSENDPOINT_HPP