client-cpp  0.6.3
IPTransportInfo.hpp
Go to the documentation of this file.
1 /*
2  * Copyright 2014-2015 CyberVision, Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef IP_TRANSPORT_INFO_HPP_
18 #define IP_TRANSPORT_INFO_HPP_
19 
20 #include <string>
21 
22 #include "kaa/logging/Log.hpp"
26 
27 namespace kaa {
28 
30 public:
32 
33  const std::string& getHost() const {
34  return host_;
35  }
36 
37  std::uint16_t getPort() const {
38  return port_;
39  }
40 
41  const std::string& getURL() const {
42  return url_;
43  }
44 
45  const PublicKey& getPublicKey() const {
46  return publicKey_;
47  }
48 
49 private:
50  std::string host_;
51  std::uint16_t port_;
52  std::string url_;
53  PublicKey publicKey_;
54 
55 };
56 
57 } /* namespace kaa */
58 
59 #endif /* IP_TRANSPORT_INFO_HPP_ */
IPTransportInfo(ITransportConnectionInfoPtr connectionInfo)
const PublicKey & getPublicKey() const
Botan::MemoryVector< std::uint8_t > PublicKey
const std::string & getHost() const
std::uint16_t getPort() const
const std::string & getURL() const
std::shared_ptr< ITransportConnectionInfo > ITransportConnectionInfoPtr