diff options
author | Shobhit Adlakha <adlakhashobhit@gmail.com> | 2019-05-24 11:11:20 -0400 |
---|---|---|
committer | Shobhit Adlakha <adlakhashobhit@gmail.com> | 2019-05-24 11:11:20 -0400 |
commit | 74a9ce55a646685d96984055b4a9c07cb08eee3b (patch) | |
tree | d80ece46e8f9274bd463a887a12c31ef9626fa25 /src/components/transport_manager/include/transport_manager/cloud/cloud_device.h | |
parent | 15cc79c54b79f39e359c028a0c7bd296cd038015 (diff) | |
download | sdl_core-74a9ce55a646685d96984055b4a9c07cb08eee3b.tar.gz |
Implemented fix and unit tests for regex endpoint parsing and websocket connectionshotfix/cloud_app_endpoint_with_path
Diffstat (limited to 'src/components/transport_manager/include/transport_manager/cloud/cloud_device.h')
-rw-r--r-- | src/components/transport_manager/include/transport_manager/cloud/cloud_device.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/components/transport_manager/include/transport_manager/cloud/cloud_device.h b/src/components/transport_manager/include/transport_manager/cloud/cloud_device.h index 47a82e7921..9c25be2a3e 100644 --- a/src/components/transport_manager/include/transport_manager/cloud/cloud_device.h +++ b/src/components/transport_manager/include/transport_manager/cloud/cloud_device.h @@ -43,22 +43,33 @@ namespace transport_manager { namespace transport_adapter { +struct CloudAppEndpoint { + std::string host; + std::string port; + std::string path; + std::string query; + std::string fragment; +}; + class CloudDevice : public Device { public: CloudDevice(std::string& host, std::string& port, std::string& name); + CloudDevice(CloudAppEndpoint endpoint, std::string& name); + virtual const std::string& GetHost() const; virtual const std::string& GetPort() const; + virtual const std::string GetTarget() const; + protected: virtual bool IsSameAs(const Device* other_device) const; virtual ApplicationList GetApplicationList() const; private: - const std::string host_; - const std::string port_; + const CloudAppEndpoint endpoint_; }; } // namespace transport_adapter |