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,
boolean verbose) |
Wol(String str,
boolean verbose,
InetAddress ip) |
Wol(String str,
boolean verbose,
InetAddress ip,
int port)
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 str) |
static void |
wol(String str,
boolean verbose) |
static void |
wol(String str,
boolean verbose,
InetAddress ip) |
static void |
wol(String str,
boolean verbose,
InetAddress ip,
int port) |
public static final String defaultIP
public static final int defaultPort
public Wol(String str) throws FileNotFoundException, HarcHardwareException
public Wol(String str, boolean verbose) throws FileNotFoundException, HarcHardwareException
public Wol(String str, boolean verbose, InetAddress ip) throws FileNotFoundException, HarcHardwareException
public Wol(String str, boolean verbose, InetAddress ip, int port) throws FileNotFoundException, HarcHardwareException
str
- Either ethernet address or a host name found in the ethers data baseverbose
- verbose executionip
- IP address to send to, should be a broadcast address (255.255.255.255)port
- port to send to, normally 9FileNotFoundException
- ethers data base file was not found.HarcHardwareException
public static void wol(String str) throws IOException, FileNotFoundException, FileNotFoundException, HarcHardwareException
public static void wol(String str, boolean verbose) throws IOException, FileNotFoundException, FileNotFoundException, HarcHardwareException
public static void wol(String str, boolean verbose, InetAddress ip) throws IOException, FileNotFoundException, FileNotFoundException, HarcHardwareException
public static void wol(String str, boolean verbose, InetAddress ip, int port) throws IOException, FileNotFoundException, FileNotFoundException, HarcHardwareException
public static void main(String[] args)
public void wol() throws SocketException, IOException
SocketException
IOException
- if an I/O error occursCopyright © 2016. All rights reserved.