source: XMLIO_V2/dev/common/src/xmlio/main_server.cpp @ 266

Last change on this file since 266 was 266, checked in by hozdoba, 13 years ago

Corrections après tests sur titane

File size: 1.2 KB
Line 
1// XmlIOServer
2#include "xmlioserver.hpp"
3
4#include "attribute_template_impl.hpp"
5#include "group_template_impl.hpp"
6
7#include "client.hpp"
8#include "server.hpp"
9
10#include "fake.hpp"
11
12// Point d'entrée du programme principal
13
14int main (int argc, char ** argv, char ** UNUSED (env))
15{
16   try
17   {
18      MPIComm comm_client, comm_client_server, comm_server;
19      //comm::CMPIManager::Initialise(&argc, &argv); // < seulement en mode connecté
20      //comm::CMPIManager::Finalize();               // < seulement en mode connecté
21
22      CXIOSManager::Initialise (CXIOSManager::CLIENT_SERVER, &argc, &argv);
23      //CXIOSManager::AddClient ("nemo"    , 4, 2, &nemo_fake_entry);
24      //CXIOSManager::AddClient("orchidee", 1, 1, &orchidee_fake_entry);
25      //CXIOSManager::AddClient("lmdz"    , 4, 2, &lmdz_fake_entry);
26      CMPIManager::DispatchClient(true, comm_client, comm_client_server,  comm_server);
27      CXIOSManager::RunServer("Nemo", comm_client_server, comm_server);
28      //CXIOSManager::RunClientServer (comm::CMPIManager::GetCommWorld ());
29      CXIOSManager::Finalize ();
30   }
31   catch (CException & exc)
32   {
33      std::cerr << exc.getMessage () << std::endl;
34      CMPIManager::Finalize ();
35      return (EXIT_FAILURE);
36   }
37   return (EXIT_SUCCESS);
38}
39
Note: See TracBrowser for help on using the repository browser.