com.aelitis.net.udp.uc
Class PRUDPPacket

java.lang.Object
  extended by com.aelitis.net.udp.uc.PRUDPPacket
Direct Known Subclasses:
PRUDPPacketReply, PRUDPPacketRequest

public abstract class PRUDPPacket
extends Object


Field Summary
static int DEFAULT_UDP_TIMEOUT
           
static int MAX_PACKET_SIZE
           
 
Constructor Summary
protected PRUDPPacket(int _type)
           
protected PRUDPPacket(int _type, int _transaction_id)
           
 
Method Summary
 int getAction()
           
 InetSocketAddress getAddress()
           
 PRUDPPacket getPreviousPacket()
           
 int getSerialisedSize()
           
 String getString()
           
 int getTransactionId()
           
 boolean hasContinuation()
           
abstract  void serialise(DataOutputStream os)
           
 void setAddress(InetSocketAddress _address)
           
 void setPreviousPacket(PRUDPPacket p)
           
 void setSerialisedSize(int len)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_PACKET_SIZE

public static final int MAX_PACKET_SIZE
See Also:
Constant Field Values

DEFAULT_UDP_TIMEOUT

public static final int DEFAULT_UDP_TIMEOUT
See Also:
Constant Field Values
Constructor Detail

PRUDPPacket

protected PRUDPPacket(int _type,
                      int _transaction_id)

PRUDPPacket

protected PRUDPPacket(int _type)
Method Detail

setSerialisedSize

public void setSerialisedSize(int len)

getSerialisedSize

public int getSerialisedSize()

hasContinuation

public boolean hasContinuation()

setPreviousPacket

public void setPreviousPacket(PRUDPPacket p)

getPreviousPacket

public PRUDPPacket getPreviousPacket()

setAddress

public void setAddress(InetSocketAddress _address)

getAddress

public InetSocketAddress getAddress()

getAction

public int getAction()

getTransactionId

public int getTransactionId()

serialise

public abstract void serialise(DataOutputStream os)
                        throws IOException
Throws:
IOException

getString

public String getString()