MCPcopy Create free account
hub / github.com/defold/defold / FindBrowserHost

Function FindBrowserHost

engine/dlib/src/dlib/mdns.cpp:1735–1743  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1733 }
1734
1735 static int32_t FindBrowserHost(dmArray<BrowserHost>& hosts, const char* host)
1736 {
1737 for (uint32_t i = 0; i < hosts.Size(); ++i)
1738 {
1739 if (NameEquals(hosts[i].m_Host, host))
1740 return (int32_t) i;
1741 }
1742 return -1;
1743 }
1744
1745 static int32_t FindBrowserService(dmArray<BrowserService>& services, const char* full_name)
1746 {

Callers 2

RefreshServiceAddressFunction · 0.85
HandleBrowserRecordFunction · 0.85

Calls 2

NameEqualsFunction · 0.85
SizeMethod · 0.45

Tested by

no test coverage detected