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

Method close

Src/SSH/ChannelSSH.cpp:223–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221}
222
223void CChannelSSH::close()
224{
225 qDebug(log) << Q_FUNC_INFO;
226
227 if(!isOpen()) return;
228
229 OnClose();
230
231 if(m_Session) {
232 if(ssh_is_connected(m_Session))
233 ssh_disconnect(m_Session);
234 ssh_free(m_Session);
235 m_Session = NULL;
236 }
237
238 if(m_pcapFile)
239 {
240 ssh_pcap_file_close(m_pcapFile);
241 ssh_pcap_file_free(m_pcapFile);
242 m_pcapFile = nullptr;
243 }
244
245 QIODevice::close();
246}
247
248int CChannelSSH::verifyKnownhost(ssh_session session)
249{

Callers 15

~MainWindowMethod · 0.45
LoadOperateMethod · 0.45
CloseDatabaseMethod · 0.45
ExportToJsonFileMethod · 0.45
ImportFromJsonFileMethod · 0.45
ExportFileToJsonMethod · 0.45
ImportFileFromJsonMethod · 0.45
SaveMethod · 0.45
runMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected