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:
$ ./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):
SimpleInterfaceClient -ORBDottedDecimalAddresses 1 -ORBInitRef NameService=corbaloc:iiop:localhost:12345/NameService