Discussion:
[omniORB] About Byte stream
janarbek
2007-08-05 07:17:00 UTC
Permalink
Dear all,
I am new to omniORB and totally CORBA.

I have a server program that plays Wav file. I have another program that calls server. Actually, I want to implement P2P system.

My interface looks like.

interface WavePlayer{

void playfile();
}


When I run two programs in different terminal. And call playfile() function from my client program it plays the WAV file in server terminal. But, I need the file to be played where it is called, for example in the client terminal.


So, I need to change my interface like below.


interface WavePlayer{

ByteStream playfile();
}


But, omniORB Does not support Byte Stream??????????? How can I do it?????????????????







==================================================================================================================================================================
Janarbek, Researcher.
Software Robot Research Team, ETRI(Electronics and Telecommunications Research Institute)
161 Kajong-Dong, Yusong-Gu, TAEJON, 305-350, KOREA
Email : ***@etri.re.kr
Phone : 82-42-860-1838
Fax : 82-42-860-6790
Cell Phone: 82-10-8692-8103
===================================================================================================================================================================


---------------------------------
Boardwalk for $500? In 2007? Ha!
Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20070804/f866f71c/attachment.htm
Duncan Grisby
2007-08-08 23:10:23 UTC
Permalink
On Saturday 4 August, janarbek wrote:

[...]
Post by janarbek
So, I need to change my interface like below.
interface WavePlayer{
ByteStream playfile();
}
But, omniORB Does not support Byte Stream??????????? How can I do
it?????????????????
Why would omniORB support a type name of ByteStream that you haven't
defined?

In CORBA terminology, a byte stream is a "sequence of octets". You can
declare your ByteStream type like this, before you define the interface:

typedef sequence<octet> ByteStream;

Then your IDL will compile.

Cheers,

Duncan.
--
-- Duncan Grisby --
-- ***@grisby.org --
-- http://www.grisby.org --
Continue reading on narkive:
Loading...