Bugzilla – Bug 244
Determining the presence of a client device
Last modified: 2008-12-18 11:50:38 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.
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>"
Sounds good to me! As soon as it's implemented, I'll install the nightly so I can take advantage of it. Thanks!!!
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
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.
Long list of versions is confusing for new bug filers.
Routine bug db maintenance; removing old versions which cause confusion. I apologize for the inconvenience.