MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / hash_endpoints

Function hash_endpoints

dds/InfoRepo/FederatorConfig.cpp:141–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139#endif
140
141void hash_endpoints(::CORBA::Long& hash, const ACE_TCHAR* const endpoints_str)
142{
143 const ACE_TCHAR* delim = ACE_TEXT(";");
144 const size_t len = ACE_OS::strlen(endpoints_str);
145 const ACE_TCHAR* curr = endpoints_str;
146 while (curr < endpoints_str + len) {
147 const ACE_TCHAR* next = ACE_OS::strstr(curr, delim);
148 if (next == 0)
149 next = endpoints_str + len;
150 hash_endpoint(hash, curr, static_cast<size_t>(next - curr));
151 curr = next + 1;
152 }
153}
154
155::CORBA::Long hash_endpoints(int argc, ACE_TCHAR** argv)
156{

Callers 1

ConfigMethod · 0.85

Calls 2

hash_endpointFunction · 0.85
random_idFunction · 0.85

Tested by

no test coverage detected