|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsimnet.DatagramPacket
An read-only object encapsulating a UDP message data and sender information.
| Field Summary | |
protected int |
cached_size
|
java.lang.Object |
data
The data this packet contains |
int |
ip
The ip address this packet was sent from |
int |
port
The port this packet was sent from |
| Constructor Summary | |
DatagramPacket(java.lang.Object data,
int ip,
int port)
Simple constructor. |
|
| Method Summary | |
int |
getSize()
Get the size of the data for this object - the overhead of this packet is not included |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public final java.lang.Object data
public final int ip
public final int port
protected int cached_size
| Constructor Detail |
public DatagramPacket(java.lang.Object data,
int ip,
int port)
| Method Detail |
public java.lang.String toString()
public int getSize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||