Skip to content

Commit

Permalink
[core] service client connection state handling (#1780)
Browse files Browse the repository at this point in the history
service client "IsConnected" will return true if matching service is connected (not only registered)
  • Loading branch information
rex-schilasky authored Nov 6, 2024
1 parent f0d4fa9 commit fe2a857
Show file tree
Hide file tree
Showing 5 changed files with 190 additions and 197 deletions.
16 changes: 0 additions & 16 deletions ecal/core/src/service/ecal_clientgate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,22 +141,6 @@ namespace eCAL
}
}

std::vector<SServiceAttr> CClientGate::GetServiceAttr(const std::string& service_name_)
{
std::vector<SServiceAttr> ret_vec;
const std::shared_lock<std::shared_timed_mutex> lock(m_service_register_map_sync);

// look for requested services
for (auto service : m_service_register_map)
{
if (service.second.sname == service_name_)
{
ret_vec.push_back(service.second);
}
}
return(ret_vec);
}

void CClientGate::GetRegistrations(Registration::SampleList& reg_sample_list_)
{
if (!m_created) return;
Expand Down
2 changes: 0 additions & 2 deletions ecal/core/src/service/ecal_clientgate.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ namespace eCAL

void ApplyServiceRegistration(const Registration::Sample& ecal_sample_);

std::vector<SServiceAttr> GetServiceAttr(const std::string& service_name_);

void GetRegistrations(Registration::SampleList& reg_sample_list_);

protected:
Expand Down
Loading

0 comments on commit fe2a857

Please sign in to comment.