com.dalsemi.tininet.dhcp
Interface DHCPListener


public interface DHCPListener

DHCPListener interface to accept dhcp status messages


Method Summary
 void ipError(String error)
          Invoked when Error occurs in dhcp attempt.
 void ipLeased()
          Invoked when an IP is leased.
 void ipLost()
          Invoked when client loses current IP.
 void ipRenewed()
          Invoked when the IP was renewed.
 

Method Detail

ipLeased

public void ipLeased()
Invoked when an IP is leased. Calling application should do any setup required here

ipRenewed

public void ipRenewed()
Invoked when the IP was renewed.

ipLost

public void ipLost()
Invoked when client loses current IP.

ipError

public void ipError(String error)
Invoked when Error occurs in dhcp attempt. Thread will continue execution, attempting to get lease from server until manually stopped by the originator.
Parameters:
error - status error that occurred during dhcp attempt, possible errors include

"No reply in Init"
"No reply in Selecting"
"No reply in Requesting"
"No reply in Bound"
"No reply in Renewing"
"No reply in Rebinding"
"No reply in Init Reboot"
"No reply in Rebooting"
"Unknown Host Exception"
"IOException"
"Fatal Error"
"Unknown Error"