#include <i_IvdNet_impl.h>


Definition at line 8 of file i_IvdNet_impl.h.
Public Member Functions | |
| i_IvdNet_i () | |
| virtual | ~i_IvdNet_i (void) |
| virtual char * | GetEcho (const char *a_message) |
Private Attributes | |
| log_CLASSID_m | |
| i_IvdNet_i::i_IvdNet_i | ( | ) | [inline] |
| virtual i_IvdNet_i::~i_IvdNet_i | ( | void | ) | [inline, virtual] |
Definition at line 14 of file i_IvdNet_impl.h.
References ipc_Corba::Shutdown().
00014 { 00015 ipc_Corba::Shutdown(); 00016 };

| char * i_IvdNet_i::GetEcho | ( | const char * | a_message | ) | [virtual] |
Definition at line 19 of file i_IvdNet_impl.cpp.
References log_FUNC_m, NULL, and ipc_Corba::Singleton().
00019 { 00020 log_FUNC_m(GetEcho); 00021 00022 string result; 00023 if (strstr(a_message, "IOR:") != NULL) { 00024 cout << "OK\nClient's reference: " << a_message << endl; 00025 result = CORBA::String_var(ipc_Corba::Singleton().m_orb->object_to_string(this->_this())); 00026 } 00027 else if (strcmp(a_message, "Bye.") == 0) { 00028 result = "Connection verified."; 00029 cout << result << endl; 00030 //cout << endl << "Waiting for client... "; 00031 } 00032 else { 00033 cout << "Received: \"" << a_message << "\"" << endl; 00034 if (strcmp(a_message, "How are you?") == 0) { 00035 result = "Fine, thanks, and how are you?"; 00036 cout << "Sent: \"" << result << "\"" << endl; 00037 } 00038 else if (strcmp(a_message, "I'm fine, too. See you.") == 0) { 00039 result = "Bye."; 00040 cout << "Sent: \"" << result << "\"" << endl; 00041 } 00042 } 00043 return CORBA::string_dup(result.c_str()); 00044 }

i_IvdNet_i::log_CLASSID_m [private] |
1.5.6