[omniORB] Returning complex types from server

Frederico Faria fred_faria at yahoo.com.br
Tue Apr 26 11:13:50 BST 2005


Hi,
 I have a general doubt about CORBA. I want return a
struct composed from another struct from my corba
server. But it looks that my returned struct is empty
when the client trys print its fields.
How can I do the right memory allocation in the server
to return correctly the struct ?

Example: ( it doesnt work )

  struct MyTime {
short   day;
short   month;
short   year;
short   second;
short   minute;
short   hour;
};

  struct MyEvent {
   short eventType;   
   MyTime eventTime;
}
interface  I1 
{
  MyEvent   getEvent()
}
---------------------------------------------
// generated serevr implementation code

 MyEvent getEvent()
{
  MyEvent  event;
 // some code
  
 return  event;
}


Regards,

Frederico Faria








	
	
		
Yahoo! Acesso Grátis - Internet rápida e grátis. 
Instale o discador agora! http://br.acesso.yahoo.com/



More information about the omniORB-list mailing list