RCFProto
 All Classes Functions Typedefs
Win32NamedPipeEndpoint.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_WIN32NAMEDPIPEENDPOINT_HPP
20 #define INCLUDE_RCF_WIN32NAMEDPIPEENDPOINT_HPP
21 
22 #include <RCF/Endpoint.hpp>
23 #include <RCF/Export.hpp>
24 #include <RCF/ClientTransport.hpp>
25 #include <RCF/ServerTransport.hpp>
26 
27 #include <RCF/util/Tchar.hpp>
28 #include <tchar.h>
29 
30 namespace RCF {
31 
33  class RCF_EXPORT Win32NamedPipeEndpoint : public Endpoint
34  {
35  public:
36 
37  Win32NamedPipeEndpoint();
38 
39  // *** SWIG BEGIN ***
40 
42  Win32NamedPipeEndpoint(const tstring & pipeName);
43 
44  // *** SWIG END ***
45 
46  ServerTransportAutoPtr createServerTransport() const;
47  ClientTransportAutoPtr createClientTransport() const;
48  EndpointPtr clone() const;
49 
50  std::string asString() const;
51 
52  tstring getPipeName();
53 
54  private:
55  tstring mPipeName;
56  };
57 
58  RCF_EXPORT std::pair<tstring, HANDLE> generateNewPipeName();
59 
60 } // namespace RCF
61 
62 #endif // ! INCLUDE_RCF_WIN32NAMEDPIPEENDPOINT_HPP