com.aelitis.net.udp.uc
Class PRUDPPacketReply

java.lang.Object
  extended by com.aelitis.net.udp.uc.PRUDPPacket
      extended by com.aelitis.net.udp.uc.PRUDPPacketReply
Direct Known Subclasses:
DHTUDPPacketReply, NetworkAdminNATUDPReply, PRUDPPacketReplyAnnounce, PRUDPPacketReplyAnnounce2, PRUDPPacketReplyConnect, PRUDPPacketReplyError, PRUDPPacketReplyScrape, PRUDPPacketReplyScrape2, VersionCheckClientUDPReply

public abstract class PRUDPPacketReply
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
PRUDPPacketReply(int _action, int _tran_id)
           
 
Method Summary
static PRUDPPacketReply deserialiseReply(PRUDPPacketHandler handler, java.net.InetSocketAddress originator, java.io.DataInputStream is)
           
 java.lang.String getString()
           
static void registerDecoders(java.util.Map _decoders)
           
 void serialise(java.io.DataOutputStream os)
           
 
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

PRUDPPacketReply

public PRUDPPacketReply(int _action,
                        int _tran_id)
Method Detail

registerDecoders

public static void registerDecoders(java.util.Map _decoders)

serialise

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

deserialiseReply

public static PRUDPPacketReply deserialiseReply(PRUDPPacketHandler handler,
                                                java.net.InetSocketAddress originator,
                                                java.io.DataInputStream is)
                                         throws java.io.IOException
Throws:
java.io.IOException

getString

public java.lang.String getString()
Overrides:
getString in class PRUDPPacket