com.jme3.network.kernel
Class Envelope

java.lang.Object
  extended by 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.
 
Method Summary
 byte[] getData()
           
 Endpoint getSource()
           
 boolean isReliable()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.

Method Detail

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