Package org.hxzon.netprotocol.field

Examples of org.hxzon.netprotocol.field.ProtocolInt31Field


        return _reserved1;
    }

    public ProtocolInt31Field fetchReserved2() {
        if (_reserved2 == null) {
            _reserved2 = new ProtocolInt31Field("reserved2", "保留2", 6, 2, true, this);
        }
        return _reserved2;
    }
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

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.