Hi Polemon !

Le Tuesday 19 May 2009 07:30:39 polemon, vous avez écrit :
> root and ogg are sources made with input.harbor, and two different
> mountpoints ("/" and "/input.ogg"). In Order to kick the client off the
> mountpoint when i needed to, I made the function you can see above.
> However, harbor.stop doesn't seem to exist anumore. I worked fine like that
> before, and I kinda miss it. now that it's gone...

Nono, it is still present, but I think you are confused by the (rather dumb) 
server interface. The command for stop should be issued with the following 
code:
  server.execute("id.stop")

Hence, a correct code in your case should be:

l_sources = [root, ogg]

def kickall(_) = 
  def stop(s) = 
    server.execute("#{source.id(s)}.stop")
  end
  list.iter(stop, l_sources) 
  "done" 
end

Romain

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to