! * \~chinese 插件连接的具体操作处理。因为此插件是非Qt事件,所以在此函数中等待。 * * \~english Specific operation processing of plug-in connection. * Because of it is a non-Qt event loop, so wait in here. * * \~ * \return * \li >= 0: continue, Interval call time (msec) * \li = -1: stop * \li < -1: error * \see CConnect::Connect() CConnect::slotTimeOut() */
| 452 | * \see CConnect::Connect() CConnect::slotTimeOut() |
| 453 | */ |
| 454 | int CBackendVnc::OnProcess() |
| 455 | { |
| 456 | int nRet = 0; |
| 457 | #ifdef HAVE_LIBSSH |
| 458 | if(m_pPara->m_Proxy.GetUsedType() == CParameterProxy::TYPE::SSHTunnel) { |
| 459 | CChannelSSHTunnel* channel = (CChannelSSHTunnel*)m_DataChannel.data(); |
| 460 | if(channel) |
| 461 | nRet = channel->Process(); |
| 462 | } |
| 463 | #endif |
| 464 | |
| 465 | return nRet; |
| 466 | } |
| 467 | |
| 468 | int CBackendVnc::WakeUp() |
| 469 | { |
nothing calls this directly
no test coverage detected