net.multicast
Class DHCPClient.Packet

java.lang.Object
  extended by net.multicast.DHCPClient.Packet
Enclosing class:
DHCPClient

public class DHCPClient.Packet
extends java.lang.Object


Field Summary
 byte[] chaddr
           
 byte[] ciaddr
           
 byte[] file
           
 short flags
           
 byte[] giaddr
           
 byte hlen
           
 byte hops
           
 byte htype
           
 byte op
           
 byte[] options
           
 short secs
           
 byte[] siaddr
           
 byte[] sname
           
 int xid
           
 byte[] yiaddr
           
 
Constructor Summary
DHCPClient.Packet()
           
 
Method Summary
 void decode(byte[] data)
           
 byte[] encode()
           
 java.lang.String getSaddress()
           
 java.lang.String getYaddress()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

op

public byte op

htype

public byte htype

hlen

public byte hlen

hops

public byte hops

xid

public int xid

secs

public short secs

flags

public short flags

ciaddr

public byte[] ciaddr

yiaddr

public byte[] yiaddr

siaddr

public byte[] siaddr

giaddr

public byte[] giaddr

chaddr

public byte[] chaddr

sname

public byte[] sname

file

public byte[] file

options

public byte[] options
Constructor Detail

DHCPClient.Packet

public DHCPClient.Packet()
Method Detail

getYaddress

public java.lang.String getYaddress()

getSaddress

public java.lang.String getSaddress()

encode

public byte[] encode()
              throws java.io.IOException
Throws:
java.io.IOException

decode

public void decode(byte[] data)
            throws java.io.IOException
Throws:
java.io.IOException