MP3::Daemon::PIMP - the daemon for Pip's Intergallactive Moosex Plaqueluster


MP3-Daemon documentation  | view source Contained in the MP3-Daemon distribution.

Index


NAME

Top

MP3::Daemon::PIMP - the daemon for Pip's Intergallactive Moosex Plaqueluster

SYNOPSIS

Top

Fork a daemon

    MP3::Daemon::PIMP->spawn($socket_path);

Start a server, but don't fork into background

    my $mp3d = MP3::Daemon::PIMP->new($socket_path);
    $mp3d->main;

You're a client wanting a socket to talk to the daemon

    my $client = MP3::Daemon::PIMP->client($socket_path);
    print $client @command;

REQUIRES

Top

MP3::Daemon

This is the base class. It provides the daemonization and event loop.

DESCRIPTION

Top

MP3::Daemon::PIMP provides a server that controls mpg123. Clients such as mp3(1p) may connect to it and request the server to manipulate its internal playlists.

METHODS

Top

Client API

These methods are usually not invoked directly. They are invoked when a client makes a request. The protocol is very simple. The first line is the name of the method. Each argument to the method is specified on successive lines. A final blank line signifies the end of the request.

    0   method name
    1   $arg[0]
    .   ...
    n-1 $arg[n-2]
    n   /^$/

Example:

    print $client <<REQUEST;
    play
    5

    REQUEST

This plays $self->{playlist}[5].

command
command

COPYLEFT

Top

Copyleft (c) 2001 pip. All rights reversed. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

Top

pip <pip@binq.org>

SEE ALSO

Top

mpg123(1), Audio::Play::MPG123(3pm), pimp(1p), mpg123sh(1p), mp3(1p)


MP3-Daemon documentation  | view source Contained in the MP3-Daemon distribution.