module Wol

Extended Modules

Defined in:

wol.cr

Constant Summary

VERSION = "0.1.0"

Instance Method Summary

Instance Method Detail

def wake(mac_address : String, address : String = "255.255.255.255", num_packets = 3, interval = 100, port = 9, secure : String | Nil = nil, resolver : Proc(String, _) | Nil = nil) #

Args: address: String target address defaults to 255.255.255.255 num_packets: Int32 number of packets to send (defauls to 3) interval: Int32 number of milliseconds between sends port: Int32 port to send message, defaults to 9 (7 could be a viable alternative) secure: password to generate a secure wol packet resolver: if provided will be called once an ip can be resolved for the provided mac address.


[View source]