Vai al contenuto
ELECTRONICS ENGINEERINGelectronics-engineering.com
Archivio CORBA

ACE TAO and Multicast Applications

https://www.electronics-engineering.com/it/articolo_4395-ace_tao_e_applicazioni_multicast.htm

Ti è stata utile questa pagina? Votala:
media 4,0 su 1 voto
ACE TAO and Multicast Applications

Questo articolo non è ancora disponibile in italiano: stai leggendo la versione originale (inglese). La traduzione italiana è in preparazione.

Archived article: written in 2017 and no longer updated. Some information, software or links may be out of date.

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

Iscriviti
Notificami
guest
5 commenti
Vecchi
Più recenti Le più votate
iElettronica
iElettronica
9 anni fa

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
9 anni fa

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

iElettronica
iElettronica
9 anni fa

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
9 anni fa

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
9 anni fa

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

5
0
Esprimete la vostra opinione commentando.x