<div dir="ltr">Dear Sir,<div><br></div><div>Please disregard this email thread.</div><div><br></div><div>I found test code in testsuites/samples/lookback.</div><div>It is working...</div><div><br></div><div>Best Regards.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-05-19 17:45 GMT+09:00 Thomas Kim <span dir="ltr"><<a href="mailto:thomas73.kim@gmail.com" target="_blank">thomas73.kim@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Dear Sir,<div><br></div><div>I think that select demo is not worked. I switched to netdemo.</div><div>Because my testing case is loopback only, I changed below points.</div><div><br></div><div><div>//#define DATA_SINK_HOST<span style="white-space:pre-wrap"> </span>((128 << 24) | (233 << 16) | (14 << 8) | 60)</div>
<div>#define DATA_SINK_HOST<span style="white-space:pre-wrap"> </span>((127 << 24) | (0 << 16) | (0 << 8) | 1)</div><div>#define MY_HOST<span style="white-space:pre-wrap"> </span>((127 << 24) | (0 << 16) | (0 << 8) | 1)</div>
</div><div><br></div><div>both DATA_SINK_HOST and MY_HOST is local IP address, "127.0.0.1".<br></div><div>Also, I changed INADDR_ANY to MY_HOST in socket structure.</div><div><br></div><div>Even though I changed this, netdemo is not working.</div>
<div>Please check this.</div><div><br></div><div>Best Regards</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-05-19 17:15 GMT+09:00 Thomas Kim <span dir="ltr"><<a href="mailto:thomas73.kim@gmail.com" target="_blank">thomas73.kim@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear Sir,<div><br></div><div>I am beginner using BSD socket API.</div><div><br></div><div>I am testing select demo in network-demos-4.10-2 examples using loopback interface only.</div>
<div>I inserted rtems_bsdnet_show_inet_routes() function before calling doSelect () as like below;</div>
<div><div><br></div><div>rtems_task</div><div>Init (rtems_task_argument ignored)</div><div>{</div><div><span style="white-space:pre-wrap"> </span>int doSocket(void);</div><div><br></div><div><span style="white-space:pre-wrap"> </span>rtems_bsdnet_initialize_network ();</div>
<div><span style="white-space:pre-wrap"> </span>rtems_bsdnet_show_inet_routes();</div><div><span style="white-space:pre-wrap"> </span>doSocket ();</div><div><span style="white-space:pre-wrap"> </span>exit (0);</div>
<div>}</div></div><div><br></div><div>As I check print log, getClients() function is not returned as like below log;</div><div><< Start of Log >></div><div><div>Destination Gateway/Mask/Hw Flags Refs Use Expire Interface </div>
<div>default 127.0.0.1 UGS 0 0 0 lo0 </div><div>127.0.0.1 127.0.0.1 UH 1 0 0 lo0 </div><div>Create socket. </div>
<div>Bind socket. </div><div>Listen. </div><div>Accept. </div></div><div><< End of Log >><br>
<br></div><div>Please could you let me know my fault ?</div><div><br></div><div>Best Regards.</div></div>
</blockquote></div><br></div>
</blockquote></div><br></div>