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

Function RefreshServiceAddress

engine/dlib/src/dlib/mdns.cpp:1845–1856  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1843 }
1844
1845 static void RefreshServiceAddress(Browser* browser, BrowserService* service)
1846 {
1847 service->m_HasAddress = 0;
1848 service->m_HostAddress[0] = 0;
1849
1850 int32_t host_index = FindBrowserHost(browser->m_Hosts, service->m_Host);
1851 if (host_index >= 0)
1852 {
1853 dmStrlCpy(service->m_HostAddress, browser->m_Hosts[(uint32_t) host_index].m_Address, sizeof(service->m_HostAddress));
1854 service->m_HasAddress = 1;
1855 }
1856 }
1857
1858 static void TryResolveService(Browser* browser, BrowserService* service)
1859 {

Callers 1

TryResolveServiceFunction · 0.85

Calls 2

FindBrowserHostFunction · 0.85
dmStrlCpyFunction · 0.85

Tested by

no test coverage detected