Package org.hxzon.netprotocol.field

Examples of org.hxzon.netprotocol.field.ProtocolInt31Field


    private PtpSequenceIdField _followUp_associatedSequenceId;
    private PtpV1TimestampField _followUp_preciseOriginTimestamp;

    public ProtocolInt31Field fetchFollowUpReserved() {
        if (_followUp_reserved == null) {
            _followUp_reserved = new ProtocolInt31Field("reserved", "保留", 40, 2, true, this);
        }
        return _followUp_reserved;
    }
View Full Code Here


    private ProtocolInt63Field _management_parameterLength;
    private ProtocolInt63Field _management_messageParameters;//TODO

    public ProtocolInt31Field fetchManagementTargetCommunicationTechnology() {
        if (_management_targetCommunicationTechnology == null) {
            _management_targetCommunicationTechnology = new ProtocolInt31Field("targetCommunicationTechnology", "targetCommunicationTechnology", 40, 1, true, this);
        }
        return _management_targetCommunicationTechnology;
    }
View Full Code Here

                fetchOperationType(), fetchSourceHardwareAddr(), fetchSourceProtocolAddr(), fetchDestHardwareAddr(), fetchDestProtocolAddr() };
    }

    public ProtocolInt31Field fetchHardwareType() {
        if (_hardwareType == null) {
            _hardwareType = new ProtocolInt31Field("hardwareType", "硬件类型", 0, 2, true, this) {
                public String getValueAsString() {
                    if (getValue() == 1) {
                        return "以太网地址";
                    }
                    return super.getValueAsString();
View Full Code Here

        return _protocolType;
    }

    public ProtocolInt31Field fetchHardwareAddrLength() {
        if (_hardwareAddrLength == null) {
            _hardwareAddrLength = new ProtocolInt31Field("hardwareAddrLength", "硬件地址长度", 4, 1, true, this);
        }
        return _hardwareAddrLength;
    }
View Full Code Here

        return _hardwareAddrLength;
    }

    public ProtocolInt31Field fetchProtocolAddrLength() {
        if (_protocolAddrLength == null) {
            _protocolAddrLength = new ProtocolInt31Field("protocolAddrLength", "协议地址长度", 5, 1, true, this);
        }
        return _protocolAddrLength;
    }
View Full Code Here

        return _protocolAddrLength;
    }

    public ProtocolInt31Field fetchOperationType() {
        if (_operationType == null) {
            _operationType = new ProtocolInt31Field("operationType", "操作类型", 6, 2, true, this) {
                public String getValueAsString() {
                    switch (getValue()) {
                    case 1:
                        return "ARP请求";
                    case 2:
View Full Code Here

        return new ProtocolField[] { fetchVersion(), fetchReserved(), fetchTotalLen() };
    }

    public ProtocolInt31Field fetchVersion() {
        if (_version == null) {
            _version = new ProtocolInt31Field("version", "版本", 0, 1, true, this);
        }
        return _version;
    }
View Full Code Here

        return _version;
    }

    public ProtocolInt31Field fetchReserved() {
        if (_reserved == null) {
            _reserved = new ProtocolInt31Field("reserved", "保留", 1, 1, true, this);
        }
        return _reserved;
    }
View Full Code Here

        return _reserved;
    }

    public ProtocolInt31Field fetchTotalLen() {
        if (_totalLen == null) {
            _totalLen = new ProtocolInt31Field("total length", "总长度", 2, 2, true, this);
        }
        return _totalLen;
    }
View Full Code Here

                fetchUrgentPointer() };
    }

    public ProtocolInt31Field fetchSourcePort() {
        if (_sourcePort == null) {
            _sourcePort = new ProtocolInt31Field("sourcePort", "源端口", 0, 2, true, this);
        }
        return _sourcePort;
    }
View Full Code Here

TOP

Related Classes of org.hxzon.netprotocol.field.ProtocolInt31Field

Copyright © 2018 www.massapicom. 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.