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 () );
23 ACE_DEBUG ((LM_DEBUG
, "Send some random events:\n"));
25 CORBA::Long value
= 64;
26 Event_var
t_e (static_cast<Event
*> (new Event_impl (value
)));
28 checkpoint
->put_event (t_e
);
31 t_e
= new Event_impl (value
);
33 checkpoint
->put_event (t_e
);
35 checkpoint
->shutdown ();
37 catch (const CORBA::Exception
& ex
)
39 ex
._tao_print_exception ("\n Exception in RMI");
47 Checkpoint_Client_i::Checkpoint_Client_i (void)
53 Checkpoint_Client_i::~Checkpoint_Client_i (void)