3 constexpr size_t BIG_LENGTH
= 4 * 1024;
7 Echo_i::Echo_i (CORBA::ORB_ptr o
)
12 // Return a list of strings.
14 Echo_i::return_list ()
28 // Just do something to get a 'big' list of strings.
29 CORBA::Char big
[BIG_LENGTH
+ 1];
30 for (size_t i
= 0; i
< BIG_LENGTH
; ++i
)
33 list
[CORBA::ULong(0)] = CORBA::string_dup(big
);
34 list
[CORBA::ULong(1)] = CORBA::string_dup("Hello World");
40 Echo_i::return_wlist ()
54 // Just do something to get a 'big' list of wide strings.
55 CORBA::WChar big
[BIG_LENGTH
+ 1];
56 for (size_t i
= 0; i
< BIG_LENGTH
; ++i
)
59 CORBA::WChar small
[17 + 1];
60 for (size_t i
= 0; i
< 17; ++i
)
63 list
[CORBA::ULong(0)] = CORBA::wstring_dup(big
);
64 list
[CORBA::ULong(1)] = CORBA::wstring_dup(small
);
69 // Shutdown the server application.
75 ACE_TEXT ("\nThe echo server is shutting down\n")));
77 // Instruct the ORB to shutdown.
78 this->orb_
->shutdown ();