iceoryx_doc  1.0.1
client_port_data.hpp
1 // Copyright (c) 2020 by Robert Bosch GmbH. All rights reserved.
2 // Copyright (c) 2020 - 2021 by Apex.AI Inc. All rights reserved.
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 // SPDX-License-Identifier: Apache-2.0
17 #ifndef IOX_POSH_POPO_PORTS_CLIENT_PORT_DATA_HPP
18 #define IOX_POSH_POPO_PORTS_CLIENT_PORT_DATA_HPP
19 
20 #include "iceoryx_posh/capro/service_description.hpp"
21 #include "iceoryx_posh/iceoryx_posh_types.hpp"
22 #include "iceoryx_posh/internal/mepoo/memory_manager.hpp"
23 #include "iceoryx_posh/internal/popo/ports/base_port_data.hpp"
24 #include "iceoryx_posh/internal/popo/ports/client_server_port_types.hpp"
25 
26 #include <atomic>
27 #include <cstdint>
28 
29 namespace iox
30 {
31 namespace popo
32 {
34 {
35  ClientPortData(const capro::ServiceDescription& serviceDescription,
36  const RuntimeName_t& runtimeName,
37  const NodeName_t& nodeName,
38  mepoo::MemoryManager* const memoryManager,
39  const mepoo::MemoryInfo& memoryInfo = mepoo::MemoryInfo()) noexcept;
40 
41  static constexpr SubscriberTooSlowPolicy CLIENT_SUBSCRIBER_POLICY = SubscriberTooSlowPolicy::DISCARD_OLDEST_DATA;
42  static constexpr QueueFullPolicy CLIENT_PUBLISHER_POLICY = QueueFullPolicy::DISCARD_OLDEST_DATA;
43  ClientChunkSenderData_t m_chunkSenderData;
44  ClientChunkReceiverData_t m_chunkReceiverData;
45  std::atomic_bool m_connectRequested{false};
46  std::atomic<ConnectionState> m_connectionState{ConnectionState::NOT_CONNECTED};
47 };
48 
49 } // namespace popo
50 } // namespace iox
51 
52 #endif // IOX_POSH_POPO_PORTS_CLIENT_PORT_DATA_HPP
class for the identification of a communication event including information on the service,...
Definition: service_description.hpp:86
Definition: memory_manager.hpp:45
Definition: service_description.hpp:29
Stores properties of the memory to be used when we distinguish between different types of memory on e...
Definition: memory_info.hpp:28
Defines different base port data.
Definition: base_port_data.hpp:34
Definition: client_port_data.hpp:34