-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature/monitoring_attributes
- Loading branch information
Showing
39 changed files
with
819 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
/* ========================= eCAL LICENSE ================================= | ||
* | ||
* Copyright (C) 2016 - 2024 Continental Corporation | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* ========================= eCAL LICENSE ================================= | ||
*/ | ||
|
||
#include "registration_attribute_builder.h" | ||
|
||
namespace eCAL | ||
{ | ||
Registration::SAttributes BuildRegistrationAttributes(const eCAL::Registration::Configuration& reg_config_, const eCAL::TransportLayer::UDP::Configuration& tl_udp_confi_, int process_id_) | ||
{ | ||
Registration::SAttributes attr; | ||
|
||
attr.refresh = reg_config_.registration_refresh; | ||
attr.network_enabled = reg_config_.network_enabled; | ||
attr.loopback = reg_config_.loopback; | ||
attr.host_group_name = reg_config_.host_group_name; | ||
attr.process_id = process_id_; | ||
|
||
attr.shm_enabled = reg_config_.layer.shm.enable; | ||
attr.udp_enabled = reg_config_.layer.udp.enable; | ||
|
||
attr.shm.domain = reg_config_.layer.shm.domain; | ||
attr.shm.queue_size = reg_config_.layer.shm.queue_size; | ||
|
||
attr.udp.port = reg_config_.layer.udp.port; | ||
attr.udp.sendbuffer = tl_udp_confi_.send_buffer; | ||
attr.udp.receivebuffer = tl_udp_confi_.receive_buffer; | ||
attr.udp.mode = tl_udp_confi_.mode; | ||
|
||
attr.udp.network.group = tl_udp_confi_.network.group; | ||
attr.udp.network.ttl = tl_udp_confi_.network.ttl; | ||
|
||
attr.udp.local.group = tl_udp_confi_.local.group; | ||
attr.udp.local.ttl = tl_udp_confi_.local.ttl; | ||
|
||
return attr; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* ========================= eCAL LICENSE ================================= | ||
* | ||
* Copyright (C) 2016 - 2024 Continental Corporation | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* ========================= eCAL LICENSE ================================= | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include "registration/attributes/registration_attributes.h" | ||
|
||
#include <ecal/ecal_config.h> | ||
|
||
namespace eCAL | ||
{ | ||
Registration::SAttributes BuildRegistrationAttributes(const eCAL::Registration::Configuration& reg_config_, const eCAL::TransportLayer::UDP::Configuration& tl_udp_confi_, int process_id_); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* =========================== LICENSE ================================= | ||
* | ||
* Copyright (C) 2016 - 2024 Continental Corporation | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* =========================== LICENSE ================================= | ||
*/ | ||
|
||
#include "ecal/config/transport_layer.h" | ||
|
||
namespace eCAL | ||
{ | ||
namespace TransportLayer | ||
{ | ||
namespace UDP | ||
{ | ||
Configuration& Configuration::operator=(const Configuration& other) | ||
{ | ||
config_version = other.config_version; | ||
join_all_interfaces = other.join_all_interfaces; | ||
mask = other.mask; | ||
mode = other.mode; | ||
network = other.network; | ||
npcap_enabled = other.npcap_enabled; | ||
port = other.port; | ||
receive_buffer = other.receive_buffer; | ||
send_buffer = other.send_buffer; | ||
|
||
return *this; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.