public class Wol extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
defaultIP |
static int |
defaultPort |
| Constructor and Description |
|---|
Wol(String str) |
Wol(String str,
File path) |
Wol(String str,
InetAddress ip,
int port,
File pathname)
Constructor for Wol.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args) |
String |
toString() |
void |
wol()
Wakes up the machines with provided Ethernet addresses.
|
static void |
wol(String wolee) |
public static final String defaultIP
public static final int defaultPort
public Wol(String str) throws IOException, Ethers.MacAddressNotFound
IOExceptionEthers.MacAddressNotFoundpublic Wol(String str, File path) throws IOException, Ethers.MacAddressNotFound
IOExceptionEthers.MacAddressNotFoundpublic Wol(String str, InetAddress ip, int port, File pathname) throws IOException, Ethers.MacAddressNotFound
str - Either ethernet address or a host name found in the ethers data baseip - IP address to send to, should be a broadcast address (255.255.255.255)port - port to send to, normally 9pathname - FileNotFoundException - ethers data base file was not found.Ethers.MacAddressNotFoundUnknownHostExceptionIOExceptionpublic static void wol(String wolee) throws IOException, Ethers.MacAddressNotFound
IOExceptionEthers.MacAddressNotFoundpublic static void main(String[] args)
public void wol()
throws IOException
SocketExceptionIOException - if an I/O error occursCopyright © 2020. All rights reserved.