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 java.lang.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()
           
 java.net.InetSocketAddress getAddress()
           
 PRUDPPacket getPreviousPacket()
           
 int getSerialisedSize()
           
 java.lang.String getString()
           
 int getTransactionId()
           
 boolean hasContinuation()
           
abstract  void serialise(java.io.DataOutputStream os)
           
 void setAddress(java.net.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(java.net.InetSocketAddress _address)

getAddress

public java.net.InetSocketAddress getAddress()

getAction

public int getAction()

getTransactionId

public int getTransactionId()

serialise

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

getString

public java.lang.String getString()