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.

RTOS/PROCESSOR-SDK-AM437X: which include statement should be deleted when migrating the non-BSD socket API to the the BSD socket API.

Part Number: PROCESSOR-SDK-AM437X

Tool/software: TI-RTOS

Hi,

By the SPRU524J, we can use the BSD socket API and non-BSD socket API. if we use the BSD socket API, we need to use the follow statement:

#include <sys/socket.h>

but I have a example code which seem to use the  non-BSD socket API, but the manual do not mention the include statement about the  non-BSD socket API.

so I do not know which statement should be deleted, when I migrate the non-BSD socket API to the the BSD socket API.

  • Hello Zhuangbin,

    Due to the US holidays, on this particular E2E thread, our response may get delayed until the week of Jan 2, 2019.

    Warmest Wishes for Happy Holidays and a Happy New Year!

    best regards,
    David Zhou
  • Hi,

    but I have a example code which seem to use the non-BSD socket API >>>> Do you mean that the NIMU test example for AM437x, such as NIMU_BasicExample_evmAM437x_armExampleproject and NIMU_FtpExample_evmAM437x_armExampleproject? They are not BSD socket API but TI NDK API.

    Is that your goal to convert them into BSD socket API?

    Regards, Eric
  • Yes, I mean that the NIMU test example use to the non-BSD socket API, I want to change to use the BSD socket API, but I do not know which include files should be deleted.

  • Hi,

    You can refer to this E2E: 

    https://e2e.ti.com/support/processors/f/791/t/666135

    Regards, Eric

  • I just want to know which include files should be deleted when I do not the non-BSD socket API.
    tell me.
  • Hi,

    We don't have any AM437x NIMU example using BSD API. Please checking 3.3 BSD Sockets Compatibility API Layer of the TI Network Developer's Kit (NDK) v2.25 API, please let us know what errors you have when build your test code with BSD API, then we can see what header files need to be deleted for those non-BSD API.

    The E2E linked I mentioned earlier is a good example when BSD API code conflicted with NDK API, how that was resolved.

    Regards, Eric