Merge pull request #1551 from DOCGroup/plm_jira_333
[ACE_TAO.git] / TAO / examples / AMH / Sink_Server / client.cpp
blob7cb524bfb833b7de75b971626983b1c4321c410d
2 #include "Client_Task.h"
4 int
5 ACE_TMAIN(int argc, ACE_TCHAR *argv[])
7 try
9 CORBA::ORB_var orb = CORBA::ORB_init (argc, argv);
11 Client_Task task (argc, argv);
13 if (task.parse_args () != 1)
15 ACE_OS::exit (1);
18 task.try_RT_scheduling ();
20 if (task.narrow_servant (orb.in()) != 1)
22 ACE_OS::exit (1);
25 task.run_test();
27 orb->destroy ();
29 catch (const ::CORBA::Exception &ex)
31 ex._tao_print_exception ("ERROR : Unexpected CORBA exception caugth :");
34 return 0;