[plt-scheme] Wake on Lan in Scheme

From: Daniel Yoo (dyoo at cs.wpi.edu)
Date: Tue May 1 18:21:28 EDT 2007


On Tue, 1 May 2007, Geoffrey S. Knauth wrote:

>> Since the machine is not on , it doesn't yet have an ip-address so what 
>> do I send the msg to - a machine address?
>
> Send it to the broadcast address for the subnet you're one

Hi Geb,

According to:

     http://beej.us/guide/bgnet/output/html/advanced.html#broadcast
     http://en.wikipedia.org/wiki/Broadcast_address

you can usually just send to the address "255.255.255.255", which will do 
a broadcast on the local LAN.  (mzscheme already appears to set the 
SO_BROADCAST option on UDP sockets.)


Good luck!


Posted on the users mailing list.