Bug 244 - Determining the presence of a client device
: Determining the presence of a client device
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: CLI
: 5.x or older
: PC RedHat Linux
: P2 normal (vote)
: ---
Assigned To: Blackketter Dean
http://lists.slimdevices.com/archives...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2004-04-08 15:56 UTC by Jeff Shanholtz
Modified: 2008-12-18 11:50 UTC (History)
0 users

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Shanholtz 2004-04-08 15:56:53 UTC
Via the CLI an absent player (such as the softsqueeze when the app isn't 
running) can be turned on and off and the power state can be queried - it 
all "works" just as it would if the player were present. Not even toggling the 
power state and then querying to see if it was successful will work because 
the query will indicate that the power was indeed toggled. Quoting Sean in 
the "discuss" thread "Command Line Interface question: determining presence of 
a player":

    Sounds like we need a command to just list the clients that are connected.

Just to explain why this is an issue for me, I'm writing a little program to 
handle the multimedia keys on my multimedia keyboard so that they perform the 
functions on my slimp3. However, I thought it would be cool if this program 
could automatically detect the presence locally of the SoftSqueeze (by 
checking for the presence of a client on localhost) and route the commands to 
it *only if it is present*. Otherwise the commands would go to the slimp3.
Comment 1 Blackketter Dean 2004-04-08 16:33:38 UTC
Great.  Rather than list the connected clients, I'd rather have a status request like:

status <?>


The "status" command indicates the status of the player, values are "connected" and "disconnected".

Examples:

Request: "04:20:00:12:23:45 status ?<CR>"
Response: "04:20:00:12:23:45 status connected<CR>"
Comment 2 Jeff Shanholtz 2004-04-09 08:55:34 UTC
Sounds good to me! As soon as it's implemented, I'll install the nightly so I 
can take advantage of it. Thanks!!!
Comment 3 KDF 2004-05-06 04:15:33 UTC
code added May 04, Command.pm v1.36, comment:
I added a CLI command that allows the user to determine if a given player is
connected.  Even documented it.

code:

             } elsif ($p0 eq "connected") {
  	                         $p1 = $client->connected() || 0;
if this works for you, feel free to mark this one as closed
Comment 4 Chris Owens 2006-06-16 14:40:17 UTC
There are 536 bugs in the database with targets of '---' that were fixed prior to new year 2006.  I am setting them to targets of 6.2.1 to keep them from showing up in my queries.
Comment 5 Chris Owens 2008-10-02 15:03:27 UTC
Long list of versions is confusing for new bug filers.
Comment 6 Chris Owens 2008-12-18 11:50:38 UTC
Routine bug db maintenance; removing old versions which cause confusion.  I apologize for the inconvenience.