public class DHCPProvisioningDiscover
extends java.lang.Object
implements java.lang.Runnable
Constructor and Description |
---|
DHCPProvisioningDiscover(int port,
byte option)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addDiscoveryListener(DiscoveryListener listener)
Add a listener that will be notified when the
discoverProvisioningURL has finished.
|
java.lang.String |
discoverProvisioningURL()
It sends a DHCPINFORM message from all interfaces and wait for a
response.
|
void |
removeDiscoveryListener(DiscoveryListener listener)
Add a listener that will be notified when the
discoverProvisioningURL has finished.
|
void |
run()
Thread entry point.
|
public DHCPProvisioningDiscover(int port, byte option) throws java.lang.Exception
port
- port on which we will bound and listen for DHCP responseoption
- code of the specific provisioning optionjava.lang.Exception
- if anything goes wrong during initializationpublic java.lang.String discoverProvisioningURL()
public void run()
run
in interface java.lang.Runnable
public void addDiscoveryListener(DiscoveryListener listener)
listener
- ProvisioningListener to addpublic void removeDiscoveryListener(DiscoveryListener listener)
listener
- ProvisioningListener to add
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.