ACE TAO AND MULTICAST APPLICATIONS

Click to rate this post!
[Total: 1 Average: 4]

DOWNLOAD: EXPERIMENT 5

This example describes multicast communication with CORBA. This communication is initialized with the nameservice using multicast IP addresses 239.x.x.x. Multicast communication uses the UDP protocol so it is used for all periodic communications without secure message reception.

EXAMPLE WITH MULTICAST COMMUNICATION REALIZED WITH VISUAL STUDIO 2005:

Compile the program of this link with Visual Studio 2005 Professional.
Launch Nameservice from cygwin with the following commands:

cd /cygdrive/c/ACE_wrappers/TAO/orbsvcs/Naming_Service $ ./Naming_Service -m 1 -ORBEndpoint iiop://localhost:12345 &

Now you have to launch the two client and server programs from
Two different terminals (cmd). First of all you need the two terminals
Go to the directory where the two executable files are present
(SimpleInterfaceClient.exe and SimpleInterfaceServer.exe) generated after the compilation was made earlier.

After that, launch the server first (from the first terminal):

SimpleInterfaceServer -ORBDottedDecimalAddresses 1 –ORBInitRef NameService=corbaloc:iiop:localhost:12345/NameService

And then launch the client (from the second terminal):

SimpleInterfaceServer -ORBDottedDecimalAddresses 1 –ORBInitRef NameService=corbaloc:iiop:localhost:12345/NameService

0 0 votes
Article Rating
Subscribe
Notify of
guest
5 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
iElettronica
iElettronica
7 years ago

i file ior sono i seguenti:
group1.ior:
corbaloc:miop:1.0@1.0-TestDomain-1/239.0.0.14:1234

group2.ior:
corbaloc:miop:1.0@1.0-TestDomain-2/239.0.0.14:1234

i file ior sono importanti solo dal lato server

iElettronica
iElettronica
7 years ago

i file ior non servono se c’e’ in mezzo il naming service

iElettronica
iElettronica
7 years ago

prima di eseguire un applicativo corba con multicast bisogna configurare appositamente i routers per poter supportare correttamente la comunicazione. il client (che in questo caso e’ un client corba) ha le librerie necessarie per poter eseguire il join al gruppo multicast usando il protocollo igmp. Chiaramente tutto questo viene nascosto dall’astraziolone delle librerie

iElettronica
iElettronica
7 years ago

prima di utilizzare il codice di questa pagina bisogna compilare sotto VC++ 2008 le librerie ACE TAO 1.6a usando le istruzioni del seguente link: http://www.theaceorb.com/faq/index.html#HowToBuildACEandTAOonWindows

iElettronica
iElettronica
7 years ago

il primo allegato e’ stato compilato in visual C++ 2008 e sono state utilizzate le librerie ACE TAO 1.6a.

5
0
Would love your thoughts, please comment.x
()
x