POE::Component::Client::MPD - a full-blown mpd client library use POE qw[ Component::Client::MPD ]; POE::Component::Client::MPD->spawn( { host => 'localhost', port => 6600, password => 's3kr3t', # mpd password alias => 'mpd', # poe alias } ); # ... later on ... $_[KERNEL]->post( 'mpd', 'next' ); POCOCM gives a clear message-passing interface (sitting on top of POE) for talking to and controlling MPD (Music Player Daemon) servers. A connection to the MPD server is established as soon as a new POCOCM object is created. Commands are then sent to the server as messages are passed.

spawn( \%params )
This method will create a POE session responsible for communicating with mpd. It will return the poe id of the session newly created. You can tune the pococm by passing some arguments as a hash reference, where the hash keys are: The hostname of the mpd server. If none given, defaults to "MPD_HOST" environment variable. If this var isn't set, defaults to "localhost". The port of the mpd server. If none given, defaults to "MPD_PORT" environment variable. If this var isn't set, defaults to 6600. The password to sent to mpd to authenticate the client. If none given, defaults to "MPD_PASSWORD" environment variable. If this var isn't set, defaults to . An optional string to alias the newly created POE session. For a list of public events that you can send to a POCOCM session, check: "POCOCM::Commands" for general commands "POCOCM::Playlist" for playlist-related commands "POCOCM::Collection" for collection-related commands Please report any bugs or feature requests to "bug-poe-component-client-mpd at rt.cpan.org", or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=POE-Component-Client-MPD>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. You can find more information on the mpd project on its homepage at <http://www.musicpd.org>, or its wiki <http://mpd.wikia.com>. "POE::Component::Client::MPD development" takes place on "<audio-mpd at googlegroups.com>": feel free to join us. (use <http://groups.google.com/group/audio-mpd> to sign in). Our subversion repository is located at <https://svn.musicpd.org>. You can also look for information on this module at: <http://annocpan.org/dist/POE-Component-Client-MPD> <http://cpanratings.perl.org/d/POE-Component-Client-MPD> <http://rt.cpan.org/NoAuth/Bugs.html?Dist=POE-Component-Client-MPD> Jerome Quelin, "<jquelin at cpan.org>" Copyright (c) 2007 Jerome Quelin, all rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.