HP Remote Graphics Software (RGS) Instrukcja Użytkownika Strona 214

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
Przeglądanie stron 213
// 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 ...
... may wish to return status from monitorEvents ...
}
198 Chapter 10 Remote Application Termination ENWW
Przeglądanie stron 213
1 2 ... 209 210 211 212 213 214 215 216 217 218 219 ... 242 243

Komentarze do niniejszej Instrukcji

Brak uwag