4 #include "ace/Get_Opt.h"
5 #include "ace/OS_NS_sys_time.h"
8 Checkpoint_Client_i::run (const char *name
,
12 // Initialize the client (read ior...).
13 if (checkpoint
.init (name
,argc
, argv
) == -1)
17 ACE_Time_Value
now (ACE_OS::gettimeofday ());
18 ACE_OS::srand ((unsigned int) now
.sec ());
22 ACE_DEBUG ((LM_DEBUG
, "Send some random events:\n"));
24 CORBA::Long value
= 64;
25 Event_var
t_e (static_cast<Event
*> (new Event_impl (value
)));
27 checkpoint
->put_event (t_e
);
30 t_e
= new Event_impl (value
);
32 checkpoint
->put_event (t_e
);
34 checkpoint
->shutdown ();
36 catch (const CORBA::Exception
& ex
)
38 ex
._tao_print_exception ("\n Exception in RMI");
46 Checkpoint_Client_i::Checkpoint_Client_i ()
52 Checkpoint_Client_i::~Checkpoint_Client_i ()