Remote Call Framework 3.3
HttpEndpoint.hpp
1 
2 //******************************************************************************
3 // RCF - Remote Call Framework
4 //
5 // Copyright (c) 2005 - 2022, Delta V Software. All rights reserved.
6 // https://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 under GPL terms.
12 //
13 // Version: 3.3
14 // Contact: support <at> deltavsoft.com
15 //
16 //******************************************************************************
17 
18 #ifndef INCLUDE_RCF_HTTPENDPOINT_HPP
19 #define INCLUDE_RCF_HTTPENDPOINT_HPP
20 
21 #include <RCF/Export.hpp>
22 #include <RCF/TcpEndpoint.hpp>
23 
24 namespace RCF {
25 
27 
30  class RCF_EXPORT HttpEndpoint : public TcpEndpoint
31  {
32  public:
33  // *** SWIG BEGIN ***
34 
36  HttpEndpoint(int port);
37 
39  HttpEndpoint(const std::string & ip, int port);
40 
42  HttpEndpoint(const std::string & ip, int port, const std::string & urlPath);
43 
44  // *** SWIG END ***
45 
47  std::string asString() const;
48 
49  ServerTransportUniquePtr createServerTransport() const;
50  ClientTransportUniquePtr createClientTransport() const;
51  EndpointPtr clone() const;
52 
53  std::string getUrlPath() const;
54 
55  private:
56  std::string mUrlPath;
57  };
58 
59 } // namespace RCF
60 
61 #endif // INCLUDE_RCF_HTTPENDPOINT_HPP
std::shared_ptr< Endpoint > EndpointPtr
Reference counted wrapper for RCF::Endpoint.
Definition: RcfFwd.hpp:117
std::unique_ptr< ClientTransport > ClientTransportUniquePtr
Unique pointer wrapper for RCF::ClientTransport.
Definition: RcfFwd.hpp:43
Represents a TCP endpoint.
Definition: TcpEndpoint.hpp:34
Represents a HTTP endpoint.
Definition: HttpEndpoint.hpp:30
Definition: AmiIoHandler.hpp:23