Remote Call Framework 3.2
HttpEndpoint.hpp
1 
2 //******************************************************************************
3 // RCF - Remote Call Framework
4 //
5 // Copyright (c) 2005 - 2020, 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.2
15 // Contact: support <at> deltavsoft.com
16 //
17 //******************************************************************************
18 
19 #ifndef INCLUDE_RCF_HTTPENDPOINT_HPP
20 #define INCLUDE_RCF_HTTPENDPOINT_HPP
21 
22 #include <RCF/Export.hpp>
23 #include <RCF/TcpEndpoint.hpp>
24 
25 namespace RCF {
26 
28 
31  class RCF_EXPORT HttpEndpoint : public TcpEndpoint
32  {
33  public:
34  // *** SWIG BEGIN ***
35 
37  HttpEndpoint(int port);
38 
40  HttpEndpoint(const std::string & ip, int port);
41 
43  HttpEndpoint(const std::string & ip, int port, const std::string & urlPath);
44 
45  // *** SWIG END ***
46 
48  std::string asString() const;
49 
50  ServerTransportUniquePtr createServerTransport() const;
51  ClientTransportUniquePtr createClientTransport() const;
52  EndpointPtr clone() const;
53 
54  std::string getUrlPath() const;
55 
56  private:
57  std::string mUrlPath;
58  };
59 
60 } // namespace RCF
61 
62 #endif // INCLUDE_RCF_HTTPENDPOINT_HPP
std::shared_ptr< Endpoint > EndpointPtr
Reference counted wrapper for RCF::Endpoint.
Definition: RcfFwd.hpp:118
std::unique_ptr< ClientTransport > ClientTransportUniquePtr
Unique pointer wrapper for RCF::ClientTransport.
Definition: RcfFwd.hpp:44
Represents a TCP endpoint.
Definition: TcpEndpoint.hpp:35
Represents a HTTP endpoint.
Definition: HttpEndpoint.hpp:31
Definition: AmiIoHandler.hpp:24