On 2009/11/10 12:33, Sardem FF7 <sardemff7....@gmail.com> wrote: > I need to write a (little) client for the MPD and there is a problem > with some data : > - - I need to be notify when the status change (the IDLE command) > - - I need to query status for elapsed time each second > > The only solution I found for the moment is to make two connections, > because when the IDLE command "is running", I can't send the status request. > > Is there any other solution ?
Yes. Whenever you need to send a command and "idle" hasn't returned yet, send the command "noidle". It's documented. http://www.musicpd.org/doc/protocol/ch02.html#id331402 http://www.musicpd.org/doc/libmpdclient/idle_8h.html ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Musicpd-dev-team mailing list Musicpd-dev-team@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team