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

Method OnLayerWrite

Plugins/FreeRDP/Client/ConnectLayerSSHTunnel.cpp:107–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107int ConnectLayerSSHTunnel::OnLayerWrite(const void *data, int bytes)
108{
109 //qDebug(log) << Q_FUNC_INFO;
110 int nRet = 0;
111 if(!m_pChannelSSH || !m_pChannelSSH->isOpen()) {
112 qCritical(log) << Q_FUNC_INFO << "The channel is close";
113 return -1;
114 }
115 nRet = m_pChannelSSH->write((const char*)data, bytes);
116 return nRet;
117}
118
119BOOL ConnectLayerSSHTunnel::OnLayerWait(BOOL waitWrite, DWORD timeout)
120{

Callers 1

cbLayerWriteMethod · 0.45

Calls 1

writeMethod · 0.80

Tested by

no test coverage detected