com.jme3.network.kernel
Class Envelope
java.lang.Object
com.jme3.network.kernel.Envelope
public class Envelope
- extends java.lang.Object
Encapsulates a received piece of data. This is used by the Kernel
to track incoming chunks of data.
Constructor Summary |
Envelope(Endpoint source,
byte[] data,
boolean reliable)
Creates an incoming envelope holding the data from the specified
source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Envelope
public Envelope(Endpoint source,
byte[] data,
boolean reliable)
- Creates an incoming envelope holding the data from the specified
source. The 'reliable' flag further indicates on which mode of
transport the data arrrived.
getSource
public Endpoint getSource()
getData
public byte[] getData()
isReliable
public boolean isReliable()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object