/example-multicast

Example multicast server and client to demonstrate `IPV6_MULTICAST_LOOP`

Primary LanguageC++

Example multicast send and receive

Build

mkdir -p ./build
cd ./build
cmake ../
make

Run

Start server with default IPV6_MULITCAST_LOOP value.

./build/main server 

Only send a multicast message (IPV6_MULITCAST_LOOP default value)

./build/main client

Use same socket for server and sending (IPV6_MULITCAST_LOOP default value).

./build/main both

Server with IPV6_MULITCAST_LOOP enabled.

./build/main server enabled

Client sending multicast with IPV6_MULITCAST_LOOP disabled.

./build/main server enabled

Both IPV6_MULITCAST_LOOP disabled.

./build/main both disabled

Both IPV6_MULITCAST_LOOP enabled.

./build/main both enabled