Class PRUDPPacket

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

public abstract class PRUDPPacket extends Object
  • Field Details

    • MAX_PACKET_SIZE

      public static final int MAX_PACKET_SIZE
      See Also:
    • DEFAULT_UDP_TIMEOUT

      public static final int DEFAULT_UDP_TIMEOUT
      See Also:
    • next_id

      private static int next_id
    • class_mon

      private static AEMonitor class_mon
    • address

      private InetSocketAddress address
    • type

      private int type
    • transaction_id

      private int transaction_id
    • previous_packet

      private PRUDPPacket previous_packet
    • serialised_size

      private int serialised_size
  • Constructor Details

    • PRUDPPacket

      protected PRUDPPacket(int _type, int _transaction_id)
    • PRUDPPacket

      protected PRUDPPacket(int _type)
  • Method Details

    • 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
    • getMinimumProtocolVersion

      protected byte getMinimumProtocolVersion(int network)
    • getString

      public String getString()