MCPcopy Create free account
hub / github.com/baldurk/renderdoc / ConnectToRemoteServer

Method ConnectToRemoteServer

qrenderdoc/Code/CaptureContext.cpp:1652–1668  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1650}
1651
1652void CaptureContext::ConnectToRemoteServer(RemoteHost host)
1653{
1654 rdcarray<RemoteHost> hosts = Config().GetRemoteHosts();
1655
1656 int hostIdx = -1;
1657 for(int32_t i = 0; i < hosts.count(); i++)
1658 {
1659 if(hosts[i].Hostname() == host.Hostname())
1660 {
1661 hostIdx = i;
1662 break;
1663 }
1664 }
1665
1666 if(hostIdx >= 0)
1667 m_MainWindow->setRemoteHost(hostIdx);
1668}
1669
1670void CaptureContext::SetRemoteHost(int hostIdx)
1671{

Callers

nothing calls this directly

Calls 4

setRemoteHostMethod · 0.80
ConfigClass · 0.50
GetRemoteHostsMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected