|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectdrcl.net.Packet
drcl.inet.transport.UDPPacket
This class defines the UDP packet header used by UDP.
| Field Summary |
| Fields inherited from class drcl.net.Packet |
body, headerSize, id, size |
| Constructor Summary | |
UDPPacket()
|
|
UDPPacket(int sport_,
int dport_,
int hsize_)
|
|
UDPPacket(int sport_,
int dport_,
int hsize_,
int bsize_,
java.lang.Object body_)
|
|
| Method Summary | |
java.lang.String |
_toString(java.lang.String separator_)
Prints the packet header. |
java.lang.Object |
clone()
Returns a clone of this object. |
int |
getDPort()
Returns the destination port number of the UDP packet. |
java.lang.String |
getName()
Returns the name of this packet. |
int |
getSPort()
Returns the source port number of the UDP packet. |
void |
setDPort(int value_)
|
void |
setSPort(int value_)
|
| Methods inherited from class drcl.net.Packet |
equals, getBody, getByteCount, getHeaderSize, getNumberCount, getPacketCount, getPacketSize, getPacketType, getSize, getSizeCount, getTimestamp, isByteCountSupported, isPacketCountSupported, isTimestampSupported, setBody, setBody, setHeaderSize, setPacketSize, setSize, setTimestamp, toString, toString, wraps |
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public UDPPacket()
public UDPPacket(int sport_,
int dport_,
int hsize_)
sport_ - source port numberdport_ - destination port number
public UDPPacket(int sport_,
int dport_,
int hsize_,
int bsize_,
java.lang.Object body_)
sport_ - source port numberdport_ - destination port number| Method Detail |
public java.lang.String getName()
Packet
getName in class Packetpublic int getSPort()
public int getDPort()
public void setSPort(int value_)
public void setDPort(int value_)
public java.lang.Object clone()
ObjectCloneable
clone in interface ObjectCloneableclone in class Packetpublic java.lang.String _toString(java.lang.String separator_)
Packet
_toString in class Packet
|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||