FileDocCategorySizeDatePackage
DhcpStateMachine.javaAPI DocAndroid 5.1 API2479Thu Mar 12 22:22:10 GMT 2015android.net.dhcp

DhcpStateMachine

public interface DhcpStateMachine
This class defines the "next steps" which occur after a given DHCP packet has been received.

Fields Summary
Constructors Summary
Methods Summary
public voidonAckReceived(java.net.InetAddress myIpAddress, java.net.InetAddress myNetMask, java.net.InetAddress myGateway, java.util.List myDnsServers, java.net.InetAddress myDhcpServer, int leaseTime)
Signals that the final ACK has been received from the server.

public voidonDeclineReceived(byte[] clientMac, java.net.InetAddress declinedIp)
Signals that a client's DECLINE packet has been received with the specified parameters.

public voidonDiscoverReceived(boolean broadcast, int transactionId, byte[] clientMac, byte[] requestedParameterList)
Signals that a client's DISCOVER packet has been received with the specified parameters.

public voidonInformReceived(int transactionId, byte[] clientMac, java.net.InetAddress preassignedIp, byte[] requestedParams)
Signals that a client's INFORM packet has been received with the specified parameters.

public voidonNakReceived()
Signals that a NAK packet has been received.

public voidonOfferReceived(boolean broadcast, int transactionId, byte[] myMac, java.net.InetAddress offeredIpAddress, java.net.InetAddress serverIpAddress)
Signals that an offer packet has been received with the specified parameters.

public voidonRequestReceived(boolean broadcast, int transactionId, byte[] clientMac, java.net.InetAddress requestedIp, byte[] requestedParams, java.lang.String clientHostName)
Signals that a client's REQUEST packet has been received with the specified parameters.