gorman;383225 Wrote: 
> Edit: also... my server currently serves files to my XBMC HTPC too. Am I
> right in understanding that, under this scenario, your plugin will send
> the server to sleep even if it has an open network connection serving
> files to a different machine?

I guess you could block the plugin from the CLI --or simply drop a file
called "sc-block" in /var/lock/  if under linux (another new feature
:-)

You could automate this on a linux server with a small daemon doing
something like an 'lsof' looking if files are opened in the area used
by XBMC every X minutes. Lsof will work for protocols which open files,
such as SMB or AFP. It won't work for NFS, but for NFS you can parse the
output of nfsstat to see if you're getting reads or writes.
Both options are more discriminating than counting raw packets on the
network interface, IMHO.


-- 
epoch1970
------------------------------------------------------------------------
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=48521

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins

Reply via email to