Merge pull request #2303 from jwillemsen/jwi-803
[ACE_TAO.git] / TAO / orbsvcs / tests / Interoperable_Naming / client.cpp
blobccf070a72918b6c38d201e5d730ddc03b2cc24f2
2 //=============================================================================
3 /**
4 * @file client.cpp
6 * This implements a simple CORBA client for the
7 * CosNaming::NamingContextExt example
9 * @author Priyanka Gontla <pgontla@ece.uci.edu>
11 //=============================================================================
14 #include "ncontextext_client_i.h"
16 int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
18 int result = 0;
20 try
22 NContextExt_Client_i client;
24 if (client.init (argc, argv) != 0)
25 return 1;
27 result = client.run ();
29 catch (const CORBA::Exception& ex)
31 ex._tao_print_exception ("client");
32 return 1;
35 return result;