Class Packet


  • public class Packet
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) byte[] ba4  
      (package private) Buffer buffer  
      private static Random random  
    • Constructor Summary

      Constructors 
      Constructor Description
      Packet​(Buffer buffer)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) Buffer getBuffer()  
      (package private) void padding​(int bsize)  
      void reset()  
      (package private) static void setRandom​(Random foo)  
      (package private) int shift​(int len, int bsize, int mac)  
      (package private) void unshift​(byte command, int recipient, int s, int len)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • random

        private static Random random
      • ba4

        byte[] ba4
    • Constructor Detail

      • Packet

        public Packet​(Buffer buffer)
    • Method Detail

      • setRandom

        static void setRandom​(Random foo)
      • reset

        public void reset()
      • padding

        void padding​(int bsize)
      • shift

        int shift​(int len,
                  int bsize,
                  int mac)
      • unshift

        void unshift​(byte command,
                     int recipient,
                     int s,
                     int len)
      • getBuffer

        Buffer getBuffer()