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.

Polling functions in z-stack-Linux sample application.

Hi,

I want to have a socket server inside the sample application and I'd like to use poll() function to poll the socket incoming data from client. there are several function in z-stack-Linux-sample-application such as:

1. add_poll_fds() ;

2. polling_define_poll_fd();

3. polling_undefine_poll_fd();

4. polling_process_activity()

How can I use them for my purpose?

  • Hi,
    The polling engine that is included in the sample app was written in a generic way, and it can be used with any module that supports file descriptors.
    Opening sockets for incoming data is a generic topic, outside the scope of this forum, and is widely discussed on the web.
    For specific details on how to use the functions you mentioned, I believe it would be best to follow the way that they are used by the sample application itself. If you have specific questions about any of these functions, please feel free to ask them here.
    Best regards,OD