This is free software you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. This software is copyright (c) 2011 by Chris Williams and Clinton Wong. Plus an arbitary key/values that were passed. ARG0 will be a hash reference with the following keys: 'macaddr', the MAC address that was specified, the poco strips ':' The poco does it's work and will return the output event with the result. These will be returned to you in the resultant event response. You may pass through any arbitary parameters you like, though they must be prefixed with an underscore to prevent future parameter clashes. The session parameter is only required if you wish the output event to go to a different session than the calling session, or if you have spawned the poco outside of a session. If you wish to send a magic packet to a remote subnet, you can use a variation of '192.168.0.255', given that you know the subnet mask to generate the proper broadcast address. Generally speaking, you should use a broadcast address for address ( the component defaults to using 255.255.255.255 if one is not supplied ), Using the host's last known IP address is usually not sufficient since the IP address may no longer be in the ARP cache. 'options', a hashref of POE Session options to pass to the component 'session', optional if the poco is spawned from within another session 'port', the UDP port to communicate with, defaults to 9 'address', the IP address of the host to wake up, defaults to 255.255.255.255 'event', the event handler in your session where the result should be sent, mandatory Takes a number of parameters: 'macaddr', the MAC Address of the host to wake up, mandatory WOL is based on the principle that when the PC shuts down, the NIC still receives power, and keeps listening on the network for the magic packet to arrive. It is based on the Net::Wake module by Clinton Wong. POE::Component::WakeOnLAN is a POE component that sends wake-on-lan (AKA magic) packets to turn on machines that are wake-on-lan capable. POE::Component::WakeOnLAN - A POE Component to send packets to power on computers.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |