MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / OnProcess

Method OnProcess

Plugins/TigerVnc/Client/BackendVnc.cpp:454–466  ·  view source on GitHub ↗

! * \~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() */

Source from the content-addressed store, hash-verified

452 * \see CConnect::Connect() CConnect::slotTimeOut()
453 */
454int 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
468int CBackendVnc::WakeUp()
469{

Callers

nothing calls this directly

Calls 3

GetUsedTypeMethod · 0.45
dataMethod · 0.45
ProcessMethod · 0.45

Tested by

no test coverage detected