Re: Problem with MPD client but probably POE user error
[email protected] (Rocco Caputo) Tue, 4 Feb 2014 11:24:33 -0500
| Newsgroups | perl.poe |
|---|---|
| Message-ID | <[email protected]> |
Hi, John. I don't see anything obviously wrong in the code you provided. I don't = have MPD, and I'm not familiar with the module you're using, but I can = offer some general POE advice. POE has some debugging switches, documented in POE::Kernel. I recommend = at least enabling: ASSERT_EVENTS, ASSERT_USAGE, and ASSERT_RETVALS. You = can do this in your shell: export POE_ASSERT_EVENTS=3D1 export POE_ASSERT_USAGE=3D1 export POE_ASSERT_RETVALS=3D1 Or to turn them all on (and a bit more) in one fell swoop: export POE_ASSERT_DEFAULT=3D1 Then run your program. Hopefully POE will warn you about something = relevant. --=20 Rocco Caputo <[email protected]> On Feb 4, 2014, at 07:56, John <[email protected]> wrote: >=20 > none of the events I send get=20 > to the daemon (also running on localhost with default port). > maybe this is not a problem=20 > with MPD.pm but my usage of POE. >=20 > I can use the command line client that comes with MPD to=20 > interact with the daemon and that works as expected as well as it=20 > generates logging information.