libguac 1.5.5
Loading...
Searching...
No Matches
Functions
wol.h File Reference

Header that provides functions and structures related to Wake-on-LAN support in libguac. More...

Go to the source code of this file.

Functions

int guac_wol_wake (const char *mac_addr, const char *broadcast_addr, const unsigned short udp_port)
 Send the wake-up packet to the specified destination, returning zero if the wake was sent successfully, or non-zero if an error occurs sending the wake packet.
 

Detailed Description

Header that provides functions and structures related to Wake-on-LAN support in libguac.

Function Documentation

◆ guac_wol_wake()

int guac_wol_wake ( const char * mac_addr,
const char * broadcast_addr,
const unsigned short udp_port )

Send the wake-up packet to the specified destination, returning zero if the wake was sent successfully, or non-zero if an error occurs sending the wake packet.

Note that the return value does not specify whether the system actually wakes up successfully, only whether or not the packet is transmitted.

Parameters
mac_addrThe MAC address to place in the magic Wake-on-LAN packet.
broadcast_addrThe broadcast address to which to send the magic Wake-on-LAN packet.
udp_portThe UDP port to use when sending the WoL packet.
Returns
Zero if the packet is successfully sent to the destination; non-zero if the packet cannot be sent.