Example #1
0
        public static int checkSType(DatagramPacket dp)
        {
            int sType = ByteShortConvert.toShort(dp.getData(), 2);

            return(sType);
        }
Example #2
0
        public static int checkVer(DatagramPacket dp)
        {
            int ver = ByteShortConvert.toShort(dp.getData(), 0);

            return(ver);
        }