<div dir="ltr"><div><div><div><div><div><div><div><div>Hello, All<br><br></div>I used nice examples/simple-example.c to test ice, but found that 'cb_nice_recv' was called both before and after NICE_COMPONENT_STATE_READY. <br>
</div>I changed the function 'cb_nice_recv' to print the length of received data, like this:<br><br>  printf("****Recv(%u): %.*s", len, len, buf);<br><br></div>And during candidate allocating, cb_nice_recv was called with 32 bytes of data:<br>
cb_nice_recv(32): <br>     01 01 00 0c 7c f4 b8 25 a2 68 67 2a 87 fe 06 8f 59 3c 2f 2b 00 01 00 08 00 01 40 04 3c 08 75 49<br><br><br></div>After state ready, cb_nice_recv was called with the another 32 bytes. The first four bytes was same (01 01 00 0c)<br>
<br></div>The stun server I used was: <a href="http://stun.l.google.com:19302">stun.l.google.com:19302</a><br></div><a href="http://stunserver.org">stunserver.org</a> has the same problem too, but the length of data was 88 bytes.<br>
<br></div>Is this a bug or just something I misunderstand?<br><br>Thanks<br></div>Jianbin<br></div>