failed to join group: setsockopt(IP_ADD_MEMBERSHIP) error: No such device

在DM365上运行live555的testH264VideoStreamer例程程序出现如下错误

00:09:51 Groupsock(3: 232.149.232.116, 8888, 255): failed to join group: setsockopt(IP_ADD_MEMBERSHIP) error: No such device

00:09:51 Groupsock(4: 232.149.232.116, 8889, 255): failed to join group: setsockopt(IP_ADD_MEMBERSHIP) error: No such device


分析:因为此例程为广播,广播需要路由地址,也就是gateway(网关)

自己的路由网关为172.18.168.1

route -FC   //查看板子内路由地址,发现没有此网关

route add default gw 172.18.168.1    //添加网关

route -FC   //查看发现已经存在了


重新运行可执行程序,OK错误解决了

你可能感兴趣的:(TO,JOIN,error,failed,group,setsockopt,device,No,such)