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

Function foreach

Plugins/FtpServer/BackendFtpServer.cpp:83–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81 return OnInitReturnValue::Fail;
82 }
83 foreach (auto a, m_Para->GetListen()) {
84 QHostAddress addr(a);
85 bListen = m_pServer->Listening(addr);
86 if(!bListen) {
87 szErr = tr("Failed to Ftp server is listening on %1:%2")
88 .arg(addr.toString()).arg(net.GetPort());
89 qCritical(log) << szErr;
90 emit sigError(-1, szErr);
91 return OnInitReturnValue::Fail;
92 }
93 if(!szErr.isEmpty())
94 szErr += "; ";
95 szErr += addr.toString() + ":" + QString::number(net.GetPort());
96 }
97 if(bListen) {
98 QString szMsg = tr("Ftp server is listening on ") + szErr;
99 qInfo(log) << szMsg;

Callers

nothing calls this directly

Calls 3

disconnectFromHostMethod · 0.80
GetPortMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected