Package org.jboss.netty.buffer

Examples of org.jboss.netty.buffer.ChannelBuffer.readUnsignedShort()


                case TAG_ALTITUDE:
                    position.setAltitude((double) buf.readShort());
                    break;
                   
                case TAG_STATUS:
                    extendedInfo.set("status", buf.readUnsignedShort());
                    break;
                   
                case TAG_POWER:
                    extendedInfo.set("power", buf.readUnsignedShort());
                    break;
View Full Code Here


                case TAG_STATUS:
                    extendedInfo.set("status", buf.readUnsignedShort());
                    break;
                   
                case TAG_POWER:
                    extendedInfo.set("power", buf.readUnsignedShort());
                    break;
                   
                case TAG_BATTERY:
                    extendedInfo.set("battery", buf.readUnsignedShort());
                    break;
View Full Code Here

                case TAG_POWER:
                    extendedInfo.set("power", buf.readUnsignedShort());
                    break;
                   
                case TAG_BATTERY:
                    extendedInfo.set("battery", buf.readUnsignedShort());
                    break;
                   
                case TAG_MILAGE:
                    extendedInfo.set("milage", buf.readUnsignedInt());
                    break;
View Full Code Here

        if (deviceId == null) {
            Log.warning("Unknown device");
            return null;
        }

        sendReply(channel, buf.readUnsignedShort());
       
        for (Position p : positions) {
            p.setDeviceId(deviceId);

            if (p.getAltitude() == null) {
View Full Code Here

       
        ChannelBuffer buf = (ChannelBuffer) msg;
       
        buf.readUnsignedByte(); // protocol version
        buf.readUnsignedByte(); // version id
        int sequenceNumber = buf.readUnsignedShort();
        int messageId = buf.readUnsignedShort();
        buf.readUnsignedShort(); // length
        int flags = buf.readUnsignedShort();
        buf.readUnsignedShort(); // checksum
       
View Full Code Here

        ChannelBuffer buf = (ChannelBuffer) msg;
       
        buf.readUnsignedByte(); // protocol version
        buf.readUnsignedByte(); // version id
        int sequenceNumber = buf.readUnsignedShort();
        int messageId = buf.readUnsignedShort();
        buf.readUnsignedShort(); // length
        int flags = buf.readUnsignedShort();
        buf.readUnsignedShort(); // checksum
       
        // Get device identifier
View Full Code Here

       
        buf.readUnsignedByte(); // protocol version
        buf.readUnsignedByte(); // version id
        int sequenceNumber = buf.readUnsignedShort();
        int messageId = buf.readUnsignedShort();
        buf.readUnsignedShort(); // length
        int flags = buf.readUnsignedShort();
        buf.readUnsignedShort(); // checksum
       
        // Get device identifier
        long deviceId;
View Full Code Here

        buf.readUnsignedByte(); // protocol version
        buf.readUnsignedByte(); // version id
        int sequenceNumber = buf.readUnsignedShort();
        int messageId = buf.readUnsignedShort();
        buf.readUnsignedShort(); // length
        int flags = buf.readUnsignedShort();
        buf.readUnsignedShort(); // checksum
       
        // Get device identifier
        long deviceId;
        String navigilDeviceId = String.valueOf(buf.readUnsignedInt());
View Full Code Here

        buf.readUnsignedByte(); // version id
        int sequenceNumber = buf.readUnsignedShort();
        int messageId = buf.readUnsignedShort();
        buf.readUnsignedShort(); // length
        int flags = buf.readUnsignedShort();
        buf.readUnsignedShort(); // checksum
       
        // Get device identifier
        long deviceId;
        String navigilDeviceId = String.valueOf(buf.readUnsignedInt());
        try {
View Full Code Here

       
        ChannelBuffer buf = (ChannelBuffer) msg;

        buf.skipBytes(2); // header
        int type = buf.readUnsignedByte();
        buf.readUnsignedShort(); // length

        // Pseudo IP address
        String id = String.valueOf(buf.readUnsignedInt());
       
        if (type == PACKET_POSITION_DATA ||
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.