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:
luca 2010-09-02 16:38:39 +00:00
parent 5a0ade146c
commit cf05e08795

View File

@ -83,9 +83,8 @@ bool TLurchServer::PingProcess(const wxString& strApp)
if (nTimeOut > 2000) nTimeOut = 2000;
wxIPV4address ipAddress;
ipAddress.AnyAddress();
ipAddress.LocalHost();
ipAddress.Service(nPort);
wxSocketClient sSock(wxSOCKET_NOWAIT);
sSock.Connect(ipAddress, false);
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);
AddTableRow(panel, wxT("Version"), strVer);
wxString strFreq; strFreq << m_PingTimer.GetInterval()/1000;
AddTableRow(panel, wxT("Ping Frequency"), strFreq);
wxString strFreq; strFreq << m_PingTimer.GetInterval()/1000;
AddTableRow(panel, wxT("Ping Frequency"), strFreq);
html.Save(strFilename);
}
@ -658,11 +657,11 @@ bool TLurchServer::Initialization()
{
for (size_t i = 0; i < nAuto; i++)
StartProcess(arr[i]);
const int nFreq = GetConfigInt("PingFreq");
if (nFreq > 0)
{
m_PingTimer.Start(nFreq * 1000); // sec to msec
m_Semaphore.Post(); // GREEN!
const int nFreq = GetConfigInt("PingFreq");
if (nFreq > 0)
{
m_PingTimer.Start(nFreq * 1000); // sec to msec
m_Semaphore.Post(); // GREEN!
}
}
return true;