3 #include "ace/OS_NS_unistd.h"
5 PortableServer::POA_var
Quoter_Stock_i::_poa
;
7 Quoter_Stock_i::Quoter_Stock_i (const char *symbol
,
11 , full_name_ (full_name
)
17 Quoter_Stock_i::symbol ()
19 return CORBA::string_dup (this->symbol_
.c_str ());
23 Quoter_Stock_i::full_name ()
25 return CORBA::string_dup (this->full_name_
.c_str ());
29 Quoter_Stock_i::price ()
34 Quoter::Stock::StockHistory
*
35 Quoter_Stock_i::history ()
37 Quoter::Stock::StockHistory_var hist
= new Quoter::Stock::StockHistory
;
39 // delay a little bit so we have chance to kill client
40 // before this method returns
43 const unsigned hsize
= 200000 ;
45 for ( unsigned int i
= 0 ; i
< hsize
; ++ i
) {
46 hist
[i
] = double(i
+1) ;
49 ACE_DEBUG ((LM_DEBUG
, "Returning method in server\n"));