Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement a fully functional MPD status listener that works without libuv #15

Open
promi opened this issue Mar 4, 2017 · 0 comments
Open

Comments

@promi
Copy link
Owner

promi commented Mar 4, 2017

There are currently two status listeners:

  1. src/mpd/status-listener-uvw.cpp

    Implemented with uvw / libuv and only calls the status callback when there is an actual change on the MPD server. It uses modern event notification mechanism (epoll (), etc.) through libuv.

  2. src/mpd/status-listener.cpp

    Implemented using the normal POSIX socket functions, but is not complete. Currently it calls the status callback with a dummy Idle::Song flag set every 2 seconds. It should actually call MPDs idle method (like the uvw one does) and preferably use select (). At the beginning a simple loop whould be fine as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant