blob: db7ffe138189894e78ae7a109e6cd78800ddbb41 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
//
// $Id$
//
#include "Hello.h"
ACE_RCSID(Hello, Hello, "$Id$")
Hello::Hello (CORBA::ORB_ptr orb)
: orb_ (CORBA::ORB::_duplicate (orb))
{
length_ = 4000000;
}
char *
Hello::get_string (const char * mystring)
{
ACE_DEBUG ((LM_DEBUG, "Received <%s>\n", mystring));
return CORBA::string_dup ("Hello there!Hello there!Hello there!Hello there!Hello there!Hello there!Hello there!Hello there!Hello there!");
}
Test::Octet_Seq *
Hello::get_big_reply ()
{
Test::Octet_Seq_var reply_mesg =
new Test::Octet_Seq (this->length_);
reply_mesg->length (this->length_);
return reply_mesg._retn ();
}
void
Hello::big_request (const ::Test::Octet_Seq & octet_in)
{
if (octet_in.length () > 0)
{
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT("Server side BLOB received\n")));
}
else
{
ACE_DEBUG ((LM_ERROR,
ACE_TEXT("Error recieving BLOB on server\n")));
}
}
void
Hello::shutdown (void)
{
this->orb_->shutdown (0);
}
|