Skip to content
Snippets Groups Projects
Commit 8f820050 authored by Serguei Kolos's avatar Serguei Kolos
Browse files

Simplify usage of ipc/partition interface

parent ebc10954
No related branches found
Tags ipc-05-14-19
No related merge requests found
......@@ -86,6 +86,12 @@ int main(int ac, char **av) {
if (interface_id == c_interface_default_value) {
interface_id = "IDL:" + type_name + ":1.0";
}
if (type_name == "ipc/partition") {
// Partitions are registered in the IPC server in a special way,
// they are bound to the root naming context
type_name = "";
}
}
catch(std::exception& e) {
std::cerr << "Error: " << e.what() << "\n";
......@@ -128,8 +134,8 @@ int main(int ac, char **av) {
ipc::util::bind(partition.name(), proxy_name, type_name, proxy);
ERS_LOG("The '" << proxy_name << "' proxy of the '" << type_name
<< "' type has been started for the '" << server_name
ERS_LOG("The '" << proxy_name << "' proxy supporting the '" << interface_id
<< "' interface has been started for the '" << server_name
<< "' server in '" << partition.name() << "' partition");
daq::ipc::signal::wait_for();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment