Re: [Muine] [PATCH] InfoServer



Hey,

This is insanely cool. Though, I don't think I'll commit it: We are
basically waiting for dbus-sharp to be released to incorporate dbus
support into muine. This will allow for queries very much like this, and
notification etc. It should then be very easy to do whatever queries and
stuff you want.

Cheers,
Jorn

On Mon, 2004-06-21 at 12:36 -0400, Sam Stephenson wrote:
> Attached patch listens for TCP connections on a user-specified port
> and sends a simple XML document containing player state information.
> The port number can be changed at runtime via gconf, and you can
> enable and disable the server with gconf, too.
> 
> I think this is a simple and useful way to get information about Muine
> from other applications, at least until DBUS support is added.
> 
> Here is some sample output, retrieved using netcat:
> 
> $ nc localhost 6588
> <player state="paused"><song><filename>/home/sam/Music/Mark Farina -
> San Francisco Sessions vol. 1/02 Rob Mello -
> Happiness.mp3</filename><title>Happiness</title><artist>Rob
> Mello</artist><album>San Francisco Sessions - Volume
> 1</album><duration>3:46</duration></song><position>0:03</position></player>
> 
> I haven't used C# or .NET before, so I must apologize if my code seems
> messy.  Hopefully someone will find this useful.
> 
> --
> Sam Stephenson
> sstephenson gmail com
> _______________________________________________
> muine-list mailing list
> muine-list gnome org
> http://mail.gnome.org/mailman/listinfo/muine-list




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]