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.

NDK中原始套接字的应用



各位大神:

请问有NDK中原始套接字的例程吗?我是初学者,看NDK的API文档3.4节还是不大会用,所以过来求助一下。项目需求得到MAC地址,然后转发出去时自己填充发送数据的头部,即就是基于MAC地址 的数据传输,而不是基于IP,所以想使用原始套接字,但不知道怎么在NDK中使用,望大神们指点指点。