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

Method OnLayerRead

Plugins/FreeRDP/Client/ConnectLayerSSHTunnel.cpp:90–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90int ConnectLayerSSHTunnel::OnLayerRead(void *data, int bytes)
91{
92 int nRet = 0;
93
94 if(!m_pChannelSSH || !m_pChannelSSH->isOpen()) {
95 qCritical(log) << Q_FUNC_INFO << "The channel is close";
96 return -1;
97 }
98
99 if(m_hSshSocket)
100 WSAResetEvent(m_hSshSocket);
101
102 nRet = m_pChannelSSH->read((char*)data, bytes);
103
104 return nRet;
105}
106
107int ConnectLayerSSHTunnel::OnLayerWrite(const void *data, int bytes)
108{

Callers 1

cbLayerReadMethod · 0.45

Calls 1

readMethod · 0.80

Tested by

no test coverage detected