Bull DPX/20 Podręcznik Użytkownika Strona 188

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 424
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 187
2-20
SOMobjects Base Toolkit: Programmers Reference Manual
deactivate_impl Method
Purpose
Indicates that a server implementation is no longer ready to process requests.
IDL Syntax
void deactivate_impl (
in ImplementationDef impl);
Description
The deactivate_impl method indicates that the implementation is no longer ready to
process requests.
Parameters
receiver A pointer to a BOA (SOMOA) object for the server.
env A pointer to the Environment structure for the method caller.
impl A pointer to the ImplementationDef object representing the
implementation to be deactivated.
Example
#include <somd.h>
ORBStatus rc;
/* server initialization code ... */
/* signal DSOM that server is ready */
_impl_is_ready(SOMD_SOMOAObject, &ev, SOMD_ImplDefObject);
for(rc = 0;rc==0;) {
rc = _execute_next_request(SOMD_SOMOAObject, &ev, waitFlag);
/* perform app specific code between messages here, e.g.,*/
numMessagesProcessed++;
}
/* signal DSOM that server is deactivated */
_deactivate_impl(SOMD_SOMOAObject, &ev, SOMD_ImplDefObject);
Original Class
BOA
Related Information
Methods: impl_is_ready, activate_impl_failed, execute_next_request,
execute_request_loop
Przeglądanie stron 187
1 2 ... 183 184 185 186 187 188 189 190 191 192 193 ... 423 424

Komentarze do niniejszej Instrukcji

Brak uwag