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.

AM6442: Lwip socket poll unblock

Part Number: AM6442

I need to port on FreeRTOS a library made for Linux with socket API and threads.

To wait for incoming packets, the code uses poll on several file descriptors (pipes + sockets).

In such way, a thread dedicated to intercept library internal events can unblock the thread blocked on poll.

How to reproduce a similar situation with lwip_poll ?

I cannot find which type of file descriptor a thread could poll together with socket file descriptors (pipes are not available on FreeRTOS).

Is there any way to unblock lwip_poll except than with packets or timeout ?

Looking forward

    Andrea

  • Hi Andrea,

    LWIP is open source library and you can modify the lwip_poll function or create a new poll function to achieve what you want, like adding additional conditions to unblock.

    TI does not support this, It involves customizing LWIP and TI does not intend to do this. 

    Regards,

    Mohan.