| 1650 | } |
| 1651 | |
| 1652 | void 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 | |
| 1670 | void CaptureContext::SetRemoteHost(int hostIdx) |
| 1671 | { |
nothing calls this directly
no test coverage detected