|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object
|
+--java.net.DatagramSocket
|
+--edu.bucknell.net.JDHCP.DHCPSocket
This class represents a Socket for sending DHCP Messages
DatagramSocket| Constructor Summary | |
DHCPSocket(int inPort)
Constructor for creating DHCPSocket on a specific port on the local machine. |
|
| Method Summary | |
int |
getMTU()
Returns the set MTU for this socket |
boolean |
receive(DHCPMessage outMessage)
Receives a datagram packet containing a DHCP Message into a DHCPMessage object. |
void |
send(DHCPMessage inMessage)
Sends a DHCPMessage object to a predifined host. |
void |
setMTU(int inSize)
Sets the Maximum Transfer Unit for the UDP DHCP Packets to be set. |
| Methods inherited from class java.net.DatagramSocket |
close,
connect,
disconnect,
getInetAddress,
getLocalAddress,
getLocalPort,
getPort,
getReceiveBufferSize,
getSendBufferSize,
getSoTimeout,
receive,
send,
setReceiveBufferSize,
setSendBufferSize,
setSoTimeout |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public DHCPSocket(int inPort)
throws java.net.SocketException
inPort - the port for the application to bind.| Method Detail |
public void setMTU(int inSize)
inSize - integer representing desired MTUpublic int getMTU()
public void send(DHCPMessage inMessage)
throws java.io.IOException
inMessage - well-formed DHCPMessage to be sent to a serverpublic boolean receive(DHCPMessage outMessage)
outMessage - DHCPMessage object to receive new message into
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||