This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

关于C6678的Multicast问题



请问,C6678支持Multicast 吗?有没有相应的例程?我在现有在NDK的例程helloworld上修改在用于Multicast 的工程,在根据spru524文档中的setsockopt()函数按照如下语句设置Multicast 的功能时,会失败。

if(setsockopt(sock, IPPROTO_IP, IP_ADD_MEMBERSHIP, &mreq, sizeof(mreq)) < 0)

{

     printf("set IP_ADD_MEMBERSHIP failed.\n);

     return;

}

我使用在CCS是5.2.1, NDK版本是2_21_01_38。

谢谢!