Patch level :10.0 patch 802
Files correlati : Ricompilazione Demo : [ ] Commento : Rimessa la chiamata localhost in luch al posto di any address git-svn-id: svn://10.65.10.50/branches/R_10_00@20820 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
5a0ade146c
commit
cf05e08795
@ -83,9 +83,8 @@ bool TLurchServer::PingProcess(const wxString& strApp)
|
|||||||
if (nTimeOut > 2000) nTimeOut = 2000;
|
if (nTimeOut > 2000) nTimeOut = 2000;
|
||||||
|
|
||||||
wxIPV4address ipAddress;
|
wxIPV4address ipAddress;
|
||||||
ipAddress.AnyAddress();
|
ipAddress.LocalHost();
|
||||||
ipAddress.Service(nPort);
|
ipAddress.Service(nPort);
|
||||||
|
|
||||||
wxSocketClient sSock(wxSOCKET_NOWAIT);
|
wxSocketClient sSock(wxSOCKET_NOWAIT);
|
||||||
sSock.Connect(ipAddress, false);
|
sSock.Connect(ipAddress, false);
|
||||||
if (sSock.WaitOnConnect(0, nTimeOut))
|
if (sSock.WaitOnConnect(0, nTimeOut))
|
||||||
@ -312,8 +311,8 @@ void TLurchServer::GenerateFile(wxString& strFilename)
|
|||||||
wxString strVer; strVer.Printf(wxT("%d.%d.%d"), v, t, p);
|
wxString strVer; strVer.Printf(wxT("%d.%d.%d"), v, t, p);
|
||||||
AddTableRow(panel, wxT("Version"), strVer);
|
AddTableRow(panel, wxT("Version"), strVer);
|
||||||
|
|
||||||
wxString strFreq; strFreq << m_PingTimer.GetInterval()/1000;
|
wxString strFreq; strFreq << m_PingTimer.GetInterval()/1000;
|
||||||
AddTableRow(panel, wxT("Ping Frequency"), strFreq);
|
AddTableRow(panel, wxT("Ping Frequency"), strFreq);
|
||||||
|
|
||||||
html.Save(strFilename);
|
html.Save(strFilename);
|
||||||
}
|
}
|
||||||
@ -658,11 +657,11 @@ bool TLurchServer::Initialization()
|
|||||||
{
|
{
|
||||||
for (size_t i = 0; i < nAuto; i++)
|
for (size_t i = 0; i < nAuto; i++)
|
||||||
StartProcess(arr[i]);
|
StartProcess(arr[i]);
|
||||||
const int nFreq = GetConfigInt("PingFreq");
|
const int nFreq = GetConfigInt("PingFreq");
|
||||||
if (nFreq > 0)
|
if (nFreq > 0)
|
||||||
{
|
{
|
||||||
m_PingTimer.Start(nFreq * 1000); // sec to msec
|
m_PingTimer.Start(nFreq * 1000); // sec to msec
|
||||||
m_Semaphore.Post(); // GREEN!
|
m_Semaphore.Post(); // GREEN!
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user