|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.net.DatagramSocket
net.dhcp.DHCPSocket
public class 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 |
|---|
bind, close, connect, connect, disconnect, getBroadcast, getChannel, getInetAddress, getLocalAddress, getLocalPort, getLocalSocketAddress, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoTimeout, getTrafficClass, isBound, isClosed, isConnected, receive, send, setBroadcast, setDatagramSocketImplFactory, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSoTimeout, setTrafficClass |
| 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.
java.net.SocketException| 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 server
java.io.IOExceptionpublic boolean receive(DHCPMessage outMessage)
outMessage - DHCPMessage object to receive new message into
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||