com.aelitis.net.udp.uc
Class PRUDPPacketRequest

java.lang.Object
  extended by com.aelitis.net.udp.uc.PRUDPPacket
      extended by com.aelitis.net.udp.uc.PRUDPPacketRequest
Direct Known Subclasses:
DHTUDPPacketRequest, NetworkAdminNATUDPRequest, PRUDPPacketRequestAnnounce, PRUDPPacketRequestAnnounce2, PRUDPPacketRequestConnect, PRUDPPacketRequestScrape, VersionCheckClientUDPRequest

public abstract class PRUDPPacketRequest
extends PRUDPPacket


Field Summary
static int PR_HEADER_SIZE
           
 
Fields inherited from class com.aelitis.net.udp.uc.PRUDPPacket
DEFAULT_UDP_TIMEOUT, MAX_PACKET_SIZE
 
Constructor Summary
  PRUDPPacketRequest(int _action, long _con_id)
           
protected PRUDPPacketRequest(int _action, long _con_id, int _trans_id)
           
 
Method Summary
static PRUDPPacketRequest deserialiseRequest(PRUDPPacketHandler handler, DataInputStream is)
           
 long getConnectionId()
           
 long getReceiveTime()
           
 String getString()
           
static void registerDecoders(Map _decoders)
           
 void serialise(DataOutputStream os)
           
 void setReceiveTime(long _rt)
           
 
Methods inherited from class com.aelitis.net.udp.uc.PRUDPPacket
getAction, getAddress, getPreviousPacket, getSerialisedSize, getTransactionId, hasContinuation, setAddress, setPreviousPacket, setSerialisedSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PR_HEADER_SIZE

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

PRUDPPacketRequest

public PRUDPPacketRequest(int _action,
                          long _con_id)

PRUDPPacketRequest

protected PRUDPPacketRequest(int _action,
                             long _con_id,
                             int _trans_id)
Method Detail

registerDecoders

public static void registerDecoders(Map _decoders)

getConnectionId

public long getConnectionId()

getReceiveTime

public long getReceiveTime()

setReceiveTime

public void setReceiveTime(long _rt)

serialise

public void serialise(DataOutputStream os)
               throws IOException
Specified by:
serialise in class PRUDPPacket
Throws:
IOException

deserialiseRequest

public static PRUDPPacketRequest deserialiseRequest(PRUDPPacketHandler handler,
                                                    DataInputStream is)
                                             throws IOException
Throws:
IOException

getString

public String getString()
Overrides:
getString in class PRUDPPacket