HP Remote Graphics Software (RGS) Uživatelský manuál Strana 231

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 259
  • Tabulka s obsahem
  • ŘEŠENÍ PROBLÉMŮ
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 230
else
{
dwNewIndex = dwCurrentStart + dwCurrentCount - 1;
}
// If the new index is different than the current, update the current
// and process the current event. Otherwise, we sleep for a while.
if (dwNewIndex != dwCurrentIndex)
{
// We have at least one new event. Print out the last event.
dwCurrentIndex = dwNewIndex;
if (dwNewIndex)
{
if (processEvent(eventServer, eventSource, dwCurrentIndex))
{
... event processing error here ...
return;
}
}
}
else
{
// No new events. Sleep for 1 second.
Sleep(1000);
waitedFor += 1;
}
}
return;
}
main( ... )
{
... setup and initialize agent ...
monitorEvents(EVENT_SERVER, EVENT_SRC, seconds);
... cleanup agent here or send alerts ...
ENWW
Sample Agent
213
Zobrazit stránku 230
1 2 ... 226 227 228 229 230 231 232 233 234 235 236 ... 258 259

Komentáře k této Příručce

Žádné komentáře