Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

poe::component::client::mpd::connection(3pm) [debian man page]

POE::Component::Client::MPD::Connection(3pm)		User Contributed Perl Documentation	      POE::Component::Client::MPD::Connection(3pm)

NAME
POE::Component::Client::MPD::Connection - module handling the tcp connection with mpd VERSION
version 1.121670 DESCRIPTION
This module will spawn a poe session responsible for low-level communication with mpd. It is written as a POE::Component::Client::TCP, which is taking care of everything needed. Note that you're not supposed to use this class directly: it's one of the helper class for POE::Component::Client::MPD. ATTRIBUTES
host The hostname of the mpd server. Mandatory, no default. port The port of the mpd server. Mandatory, no default. id The POE session id of the peer to dialog with. Mandatory, no default. max_retries How much time to attempt reconnection before giving up. Defaults to 5. retry_wait How much time to wait (in seconds) before attempting socket reconnection. Defaults to 2. METHODS
my $id = POE::Component::Client::MPD::Connection->spawn( \%params ); This method will create a POE::Component::Client::TCP session responsible for low-level communication with mpd. It will return the poe id of the session newly created. PUBLIC EVENTS ACCEPTED
disconnect( ) Request the pococm-connection to be shutdown. This does not shut down the MPD server. No argument. send( $message ) Request pococm-conn to send the $message over the wires. Note that this request is a POE::Component::Client::MPD::Message object properly filled up, and that the "_commands()" attribute should not be newline terminated. PUBLIC EVENTS FIRED
The following events are fired from the spawned session. mpd_connected( $version ) Fired when the session is connected to a mpd server. This event isn't fired when the socket connection takes place, but when the session has checked that remote peer is a real mpd server. $version is the advertised mpd server version. mpd_connect_error_fatal( $errstr ) Fired when the session encounters a fatal error. This happens either when the session is connected to a server which happens to be something else than a mpd server, or if there was more than "max_retries" (see "spawn()" params) connection retries in a row. $errstr will contain the problem encountered. No retries will be done. mpd_connect_error_retriable( $errstr ) Fired when the session has troubles connecting to the server. $errstr will point the faulty syscall that failed. Re-connection will be tried after $retry_wait seconds (see "spawn()" params). mpd_data( $msg ) Fired when $msg has been sent over the wires, and mpd server has answered with success. The actual output should be looked up in "$msg-"_data>. mpd_disconnected( ) Fired when the socket has been disconnected for whatever reason. Note that this event is not fired in the case of a programmed shutdown (see "disconnect()" event above). A reconnection will be automatically re-tried after $retry_wait (see "spawn()" params). mpd_error( $msg, $errstr ) Fired when $msg has been sent over the wires, and mpd server has answered with the error message $errstr. AUTHOR
Jerome Quelin COPYRIGHT AND LICENSE
This software is copyright (c) 2007 by Jerome Quelin. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.14.2 2012-06-15 POE::Component::Client::MPD::Connection(3pm)

Check Out this Related Man Page

Audio::MPD::Common(3pm) 				User Contributed Perl Documentation				   Audio::MPD::Common(3pm)

NAME
Audio::MPD::Common - common helper classes for mpd VERSION
version 1.120881 DESCRIPTION
Depending on whether you're using a POE-aware environment or not, people wanting to tinker with mpd (Music Player Daemon) will use either POE::Component::Client::MPD or Audio::MPD. But even if the run-cores of those two modules differ completely, they are using the exact same common classes to represent the various mpd states and information. Therefore, those common classes have been outsourced to Audio::MPD::Common. This module does not export any methods, but the dist provides the following classes that you can query with perldoc: o Audio::MPD::Common::Item o Audio::MPD::Common::Item::Directory o Audio::MPD::Common::Item::Playlist o Audio::MPD::Common::Item::Song o Audio::MPD::Common::Stats o Audio::MPD::Common::Status o Audio::MPD::Common::Time o Audio::MPD::Common::Types Note that those modules should not be of any use outside the two mpd modules afore-mentioned. SEE ALSO
You can look for information on this module at: o Search CPAN http://search.cpan.org/dist/Audio-MPD-Common <http://search.cpan.org/dist/Audio-MPD-Common> o See open / report bugs http://rt.cpan.org/NoAuth/Bugs.html?Dist=Audio-MPD-Common <http://rt.cpan.org/NoAuth/Bugs.html?Dist=Audio-MPD-Common> o Git repository http://github.com/jquelin/audio-mpd-common.git <http://github.com/jquelin/audio-mpd-common.git> o AnnoCPAN: Annotated CPAN documentation http://annocpan.org/dist/Audio-MPD-Common <http://annocpan.org/dist/Audio-MPD-Common> o CPAN Ratings http://cpanratings.perl.org/d/Audio-MPD-Common <http://cpanratings.perl.org/d/Audio-MPD-Common> You may want to look at the modules really accessing MPD: o Audio::MPD o POE::Component::Client::MPD AUTHOR
Jerome Quelin COPYRIGHT AND LICENSE
This software is copyright (c) 2007 by Jerome Quelin. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.14.2 2012-04-01 Audio::MPD::Common(3pm)
Man Page