ASAP 1.1 Hybrid Manual
HP NonStop ASAP Hybrid Manual – 529729-004
Page 4-29
::printf("asap_opstate returned %d, error detail = %d\n", ReturnValue,
ErrorDetail);
// At this point, if HTMLStatus is TRUE in the asap.conf configuration file, you
// can look at the asapdomains.html file in the ASAP Hybrid for Linux server
// directory, and this domain and data will appear. Note: You might have to wait a
// few seconds for the next server sample interval.
// Pause to give yourself a chance to look at the data. If you wait for
// multiple samples, the New flag for the domain changes from True to
// False because the domain is no longer new. In addition, the Upd flag changes
// from True to False because the domain has not been updated in any
// subsequent sample (because the application will be waiting at this prompt).
::printf("Enter C to continue...");
while (::getchar() != 'C');
// Remove the domain you just registered
ReturnValue = ::asap_remove(Handle, // Handle from asap_register
&ErrorDetail, // Returned error information
true); // Deallocate domain
::printf("asap_remove returned %d, error detail = %d\n", ReturnValue, ErrorDetail);
} // while (true)
} // int main(int argc, char *argv[])