Audio-RPLD

 view release on metacpan or  search on metacpan

lib/Audio/RPLD.pm  view on Meta::CPAN

 my $q = $e->cmd_data('LISTCLIENTS');
 my @r;
 local $_;

 return undef unless defined($q);

 return undef unless $e->is_ok(shift(@{$q}));

 while (($_ = shift(@{$q}))) {
  push(@r, p_client($e, $_));
 }

 return \@r;
}

=pod

=head3 $res = $rpld-E<gt>listclients()

Get a list of clients connected to the server.
This returns a arrayref to a array containing a hashref for each client. This hash contains the following keys:

=over

=item id

The ID of the client.

=item name

The name of the client.

=item protocol

The name of the protocol the client is using.

=item pid (optional)

The process ID of the client.

=item nodename (optional)

The name of the node the client is being conneected from.

=item hostid (optional)

The unix hostid of the node the client is being connected from.

=back

=cut

1;

=pod

=head1 SEE ALSO

=head1 AUTHOR

  Philipp "ph3-der-loewe" Schafft <lion@lion.leolix.org>

=head1 LICENSE

      Copyright (C) Philipp 'ph3-der-loewe' Schafft - 2009-2012
  
  This file is part of Audio::RPLD,
  a library to access the RoarAudio PlayList Daemon from Perl.
  See README for details.
  
  This file is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License version 3
  as published by the Free Software Foundation.
  
  Audio::RPLD is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.
  
  You should have received a copy of the GNU General Public License
  along with this software; see the file COPYING.gplv3.
  If not, write to the Free Software Foundation, 51 Franklin Street,
  Fifth Floor, Boston, MA 02110-1301, USA.

=cut

__DATA__
  HELP
  SERVERINFO
  QUIT
  IMPORT [{"Name"|ID}] {TO|FROM} {STDIN|STDOUT|"Filename"} [AS {RPLD|PLS|M3U|VCLT|XSPF|PLAIN|URAS}]
  EXPORT [{"Name"|ID}] {TO|FROM} {STDIN|STDOUT|"Filename"} [AS {RPLD|PLS|M3U|VCLT|XSPF|PLAIN|URAS}]
  UNAUTH [ACCLEV] {BY n|TO {n|"name"}}



( run in 1.437 second using v1.01-cache-2.11-cpan-8f98c5d2c55 )