Mike,
WOL = Wake on LAN, as Dave already said. It is simply broadcasting the Magic
packet, which consists of several time the MAC address of the Ethernet card
of the system to wake up. Very simple, can be accomplished with a few lines
in PERL. On all newer Macs/Powerbooks that works from sleep mode, on some
PCs that even works from Power off state (i.e. booting the system).
In case Soundbridge doesn't find the iTunes library on the IP address it
streamed music from the last time it was running, it could ping that
address to see whether the system is running. If not it could send the WOL
signal and ping again for about 2 minutes. As soon as the ping is
successful, it could run the launchTunes client. If the library isn't
available after some time, it should time out as there is no way to make the
streaming server available remotely. Otherwise it is ready to go.
Similar thing could happen, when switching off Soundbridge. It could
remotely quit iTunes (i.e. with launchTunes ) then send an Apple Script
request to put the Mac to sleep. Or having some server process running on
the Mac/PC, that accepts a client request from Soundbridge to put the Mac/PC
to sleep. Instead of having several apps/scripts working together, probably
all this functionality, WOL, launching/quitting iTunes, putting machine to
sleep could be integrated in one client/server app (two versions for
Mac/PC). There should be some preferences, where you can enable/disable to
allow Soundbridge to put the computer to sleep and probably an (optional)
dialog box: "Soundbridge wants to put you computer to sleep mode.
Accept/Cancel." It wouldn't be so nice, if my Mac suddenly goes to sleep
mode, while I'm working on my 20 pages report, just because someone switched
of Soundbridge ;-)
Peter