1 #include "Time_Client_i.h"
2 #include "ace/OS_NS_time.h"
4 // This is the interface program that accesses the remote object
7 Time_Client_i::Time_Client_i ()
13 Time_Client_i::~Time_Client_i ()
19 Time_Client_i::run (const char *name
,
23 // Initialize the client.
24 if (client_
.init (name
, argc
, argv
) == -1)
29 // 64-bit OS's require pointers to be aligned on an
31 CORBA::Long padding
= 0;
34 ACE_UNUSED_ARG (padding
);
37 timedate
= static_cast <time_t> (client_
->current_time ());
40 ACE_TCHAR ascii_timedate
[64] = ACE_TEXT ("");
42 ACE_OS::ctime_r (&timedate
, ascii_timedate
, 64);
45 ACE_TEXT ("string time is %s\n"),
48 if (client_
.do_shutdown () == 1)
51 catch (const CORBA::Exception
& ex
)
53 ex
._tao_print_exception ("\tException");