Examples of ProtocolBitField


Examples of org.hxzon.netprotocol.field.ProtocolBitField

        return _acknowledgementNumber;
    }

    public ProtocolBitField fetchHeaderLen() {
        if (_headerLen == null) {
            _headerLen = new ProtocolBitField("header len", "头部长度", 12, 0, 4, this) {
                public String getValueAsString() {
                    return (getValue() * 4) + "(=" + getValue() + "*4)";
                }
            };
        }
View Full Code Here

Examples of org.hxzon.netprotocol.field.ProtocolBitField

        return _headerLen;
    }

    public ProtocolBitField fetchFlag() {
        if (_flag == null) {
            _flag = new ProtocolBitField("flag", "标识", 12, 7, 9, this) {
                public String getValueAsString() {
                    return flagDescription(getValue());
                }
            };
        }
View Full Code Here

Examples of org.hxzon.netprotocol.field.ProtocolBitField

        return _length;
    }

    public ProtocolBitField fetchPduType() {
        if (_pduType == null) {
            _pduType = new ProtocolBitField("pdu type", "PDU类型", 1, 0, 4, this) {
                public String getValueAsString() {
                    return pduTypeDescription(getValue());
                }
            };
        }
View Full Code Here

Examples of org.hxzon.netprotocol.field.ProtocolBitField

        }
    }

    public ProtocolBitField fetchTpduNumber() {
        if (_tpduNumber == null) {
            _tpduNumber = new ProtocolBitField("TPDU number", "TPDU number", 2, 1, 7, this);
        }
        return _tpduNumber;
    }
View Full Code Here

Examples of org.hxzon.netprotocol.field.ProtocolBitField

    public static final int LastUnit = 1;

    public ProtocolBitField fetchIsLast() {
        if (_isLast == null) {
            _isLast = new ProtocolBitField("is last unit", "is last unit", 2, 0, 1, this) {
                public String getValueAsString() {
                    return getValue() == LastUnit ? "last" : "not last";
                }
            };
        }
View Full Code Here

Examples of org.hxzon.netprotocol.field.ProtocolBitField

        return _headerFields;
    }

    public ProtocolBitField fetchTransportSpecific() {
        if (_transportSpecific == null) {
            _transportSpecific = new ProtocolBitField("transportSpecific", "传输特性", 0, 0, 4, this) {
                public String getValueAsString() {
                    if (getValue() == 0) {
                        return "ethernet or udp/ipv6";
                    } else {
                        return "udp/ipv4";
View Full Code Here

Examples of org.hxzon.netprotocol.field.ProtocolBitField

        }
    }

    public ProtocolBitField fetchMessageType() {
        if (_messageType == null) {
            _messageType = new ProtocolBitField("messageType", "报文类型", 0, 4, 4, this) {
                public String getValueAsString() {
                    return messageTypeDescription(getValue());
                }
            };
        }
View Full Code Here

Examples of org.hxzon.netprotocol.field.ProtocolBitField

        return _messageType;
    }

    public ProtocolBitField fetchPtpVersion() {
        if (_ptpVersion == null) {
            _ptpVersion = new ProtocolBitField("ptpVersion", "协议版本", 1, 4, 4, this);
        }
        return _ptpVersion;
    }
View Full Code Here

Examples of org.hxzon.netprotocol.field.ProtocolBitField

        return _management_boundaryHops;
    }

    public ProtocolBitField fetchManagementReserved1() {
        if (_management_reserved1 == null) {
            _management_reserved1 = new ProtocolBitField("reserved1", "reserved1", 46, 0, 4, this);
        }
        return _management_reserved1;
    }
View Full Code Here

Examples of org.hxzon.netprotocol.field.ProtocolBitField

        return _management_reserved1;
    }

    public ProtocolBitField fetchManagementAction() {
        if (_management_action == null) {
            _management_action = new ProtocolBitField("action", "action", 46, 4, 4, this);
        }
        return _management_action;
    }
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.