From 14811f831df2d5ef719a0b7b19861b0e700cf341 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Quelin?= Date: Mon, 28 Sep 2009 17:21:09 +0200 Subject: [PATCH] doc update --- lib/POE/Component/Client/MPD.pm | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/lib/POE/Component/Client/MPD.pm b/lib/POE/Component/Client/MPD.pm index a963a2b..4ae6af4 100644 --- a/lib/POE/Component/Client/MPD.pm +++ b/lib/POE/Component/Client/MPD.pm @@ -352,10 +352,11 @@ 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 + host => 'localhost', + port => 6600, + password => 's3kr3t', # mpd password + alias => 'mpd', # poe alias + status_msgs_to => 'myapp', # session to send status info to } ); # ... later on ... @@ -414,7 +415,10 @@ An optional string to alias the newly created POE session. =item * status_msgs_to A session (name or id) to whom to send connection status to. Optional, -although recommended. No default. +although recommended. No default. When this is done, pococm will send +*additional* events to the session, such as: C when +pococm is connected, C when pococm is disconnected, +etc. You thus need to register some handlers for those events. =back -- 2.11.4.GIT