Hi there,
I am planning to implement my know UDP client on the OMAP L138 LCDK board and I have read the user and design guide for the NDK with the reference design.
I was able to run the hello world and client example provided with the NSP. however, when I try to make some changes it doesn't seem to work.
Following changes I made:
1) Implemented the hello world example using the BSD socket standard and hence followed the steps mentioned in the reference guide, Section 3.3.
- Removed the reference to NDK/INC and added NDK/INC/BSD in the include path.
I get error about the dtask_udp_hello socket type and UINT32 type are not defined.. Which is expected after removing the reference from the NDK/INC ... but I think the socket in BSD format is of type int and I am not sure how can I change the type of the dtask_udp_hello when called in the NewDaemon function.
2) In the user guide Section 3.3.. creating the task using configuration method.. I have created a task using static method with the stack size 4096 and priority of 5 as mentioned in the guide!
I have also added the fdOpenSession and fdCloseSession as shown in the example design. When I run the example I get an error stating unable to create socket! that is it return INVALID_SOCKET..
I was under the impression that, if I don't want to use the NewDaemon function to create sockets then I can create task - socket using the 2nd method.
Could you please explain, how to create a socket using the SYSBIOS task. Thanks.
Regards,
Mitesh