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

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 424
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 295
2-128
SOMobjects Base Toolkit: Programmers Reference Manual
somdStartServer Method
Purpose
Starts a server process.
IDL Syntax
ORBStatus somdStartServer (in string server_alias);
Description
The somdStartServer method is invoked to start a server process. If the server process
does not exist, the server process is started and the code indicating success is returned. If
the server process already exists, then the return code will still indicate success and the
server process will be undisturbed.
Parameters
receiver A pointer to an object of class SOMDServerMgr.
ev A pointer to the Environment structure for the calling method.
server_alias The implementation alias of the server to be started.
Return Value
Returns 0 for success or a DSOM error code for failure.
Example
#include <somd.h>
#include <servmgr.h>
SOMDServerMgr servmgr;
string server_alias = ”MyServer”;
ORBStatus rc;
Environment e;
SOM_InitEnvironment(&e);
SOMD_Init(&e);
servmgr = SOMDServerMgrNew();
rc = _somdStartServer(servmgr, &e, server_alias);
Original Class
SOMDServerMgr
Przeglądanie stron 295
1 2 ... 291 292 293 294 295 296 297 298 299 300 301 ... 423 424

Komentarze do niniejszej Instrukcji

Brak uwag