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.

使用6678NDK的例子,发现其tcp/ip通信使用的时广播模式,如何修改为单播模式???是不是修改如下???试过了,但是还是广播,已测!




求大神指教:

NDK例子,tcp/ip协议通信,广播模式改为单播模式的方法???

是不是主要修改下面红色标记的部分???



bzero( &RT, sizeof(RT) );
RT.IPDestAddr = 0;
RT.IPDestMask = 0;
RT.IPGateAddr = inet_addr(GatewayIP);

// Add the route
CfgAddEntry( hCfg, CFGTAG_ROUTE, 0, 0,
sizeof(CI_ROUTE), (UINT8 *)&RT, 0 );



我已经将上面的红色部分写死为同一个局域网中的ip,但是测试发现,同一个局域网中的其它ip还能收到信息!!!

糊涂了&…………………………………………………………………………