我试图在同一个多播/端口上运行一个基本发行者/订阅者对。我想知道配置通道如何用于udp多播,特别是“接口”参数,所有的子程序都可以从酒吧接收消息吗?
我有三台机器,我想用udp多播类型测试副翼,在一个本地网络(Lan)中测试三台主机,
酒吧matchineA ip 192.168.31.100,
sub1 matchineB ip 192.168.31.120
sub2 matchineC ip 192.168.31.121
我的测试用例是:
pub:最终字符串通道= "aeron:udp?endpoint=192.168.31.120:40456|interface=192.168.31.0/24|ttl=16";
"aeron:udp?endpoint=192.168.31.120:40456|interface=192.168.31.0/24|ttl=16";:sub1:最终字符串通道=
"aeron:udp?endpoint=192.168.31.121:40456|interface=192.168.31.0/24|ttl=16";:sub2:最终字符串通道=
但是只有sub1才能接收所有的消息,sub2不能接收任何消息。我想“接口”参数配置可能不正确。
我想知道配置通道udp多播所有子程序如何接收所有消息?谢谢!
发布于 2022-05-18 13:57:39
端点配置udp组播ip 224.0.1.1是测试通过。
pub:最终字符串通道= "aeron:udp?endpoint=224.0.1.1:40456|interface=192.168.31.100|ttl=16";
"aeron:udp?endpoint=224.0.1.1:40456|interface=192.168.31.120|ttl=16";:sub1:最终字符串通道=
"aeron:udp?endpoint=224.0.1.1:40456|interface=192.168.31.121|ttl=16";:sub2:最终字符串通道=
https://stackoverflow.com/questions/72247798
复制相似问题