ACE TAO AND MULTICAST APPLICATIONS

[Total: 1    Average: 4/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.

 

DOWNLOAD: EXPERIMENT 5

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:

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):

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

  • iElettronica

    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

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

  • iElettronica

    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

    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

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