RTEMS BSD select demo testing using loopback interface.

Thomas Kim thomas73.kim at gmail.com
Mon May 19 08:51:53 UTC 2014


Dear Sir,

Please disregard this email thread.

I found test code in testsuites/samples/lookback.
It is working...

Best Regards.


2014-05-19 17:45 GMT+09:00 Thomas Kim <thomas73.kim at gmail.com>:

> Dear Sir,
>
> I think that select demo is not worked. I switched to netdemo.
> Because my testing case is loopback only, I changed below points.
>
> //#define DATA_SINK_HOST ((128 << 24) | (233 << 16) | (14 << 8) | 60)
> #define DATA_SINK_HOST ((127 << 24) | (0 << 16) | (0 << 8) | 1)
> #define MY_HOST ((127 << 24) | (0 << 16) | (0 << 8) | 1)
>
> both DATA_SINK_HOST and MY_HOST is local IP address, "127.0.0.1".
> Also, I changed INADDR_ANY to MY_HOST in socket structure.
>
> Even though I changed this, netdemo is not working.
> Please check this.
>
> Best Regards
>
>
>
>
> 2014-05-19 17:15 GMT+09:00 Thomas Kim <thomas73.kim at gmail.com>:
>
>> Dear Sir,
>>
>> I am beginner using BSD socket API.
>>
>> I am testing select demo in network-demos-4.10-2 examples using loopback
>> interface only.
>> I inserted rtems_bsdnet_show_inet_routes() function before calling
>> doSelect () as like below;
>>
>> rtems_task
>> Init (rtems_task_argument ignored)
>> {
>> int doSocket(void);
>>
>> rtems_bsdnet_initialize_network ();
>>  rtems_bsdnet_show_inet_routes();
>> doSocket ();
>> exit (0);
>> }
>>
>> As I check print log, getClients() function is not returned as like below
>> log;
>> << Start of Log >>
>> Destination     Gateway/Mask/Hw    Flags     Refs     Use Expire
>> Interface
>> default         127.0.0.1          UGS         0        0      0 lo0
>>
>> 127.0.0.1       127.0.0.1          UH          1        0      0 lo0
>>
>> Create socket.
>>
>> Bind socket.
>>
>> Listen.
>>
>> Accept.
>> << End of Log >>
>>
>> Please could you let me know my fault ?
>>
>> Best Regards.
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20140519/9c69a3d8/attachment-0001.html>


More information about the users mailing list