|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object seda.sandStorm.lib.aSocket.AUdpInPacket
public class AUdpInPacket
An AUdpInPacket represents a packet which was received from a datagram socket.
Field Summary | |
---|---|
private java.net.DatagramPacket |
packet
|
(package private) long |
seqNum
|
private AUdpSocket |
sock
|
Constructor Summary | |
---|---|
AUdpInPacket(AUdpSocket sock,
java.net.DatagramPacket packet)
|
|
AUdpInPacket(AUdpSocket sock,
java.net.DatagramPacket packet,
long seqNum)
|
Method Summary | |
---|---|
byte[] |
getBytes()
Return the packet data. |
java.net.DatagramPacket |
getPacket()
Return the DatagramPacket. |
long |
getSequenceNumber()
Return the sequence number associated with this packet. |
AUdpSocket |
getSocket()
Return the socket from which this packet was received. |
int |
size()
Return the size of the packet data. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private AUdpSocket sock
private java.net.DatagramPacket packet
long seqNum
Constructor Detail |
---|
public AUdpInPacket(AUdpSocket sock, java.net.DatagramPacket packet)
public AUdpInPacket(AUdpSocket sock, java.net.DatagramPacket packet, long seqNum)
Method Detail |
---|
public AUdpSocket getSocket()
public java.net.DatagramPacket getPacket()
public byte[] getBytes()
public int size()
public long getSequenceNumber()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |