当前位置: 首页>>代码示例>>Java>>正文


Java DNSConstants.FLAGS_QR_QUERY属性代码示例

本文整理汇总了Java中javax.jmdns.impl.constants.DNSConstants.FLAGS_QR_QUERY属性的典型用法代码示例。如果您正苦于以下问题:Java DNSConstants.FLAGS_QR_QUERY属性的具体用法?Java DNSConstants.FLAGS_QR_QUERY怎么用?Java DNSConstants.FLAGS_QR_QUERY使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在javax.jmdns.impl.constants.DNSConstants的用法示例。


在下文中一共展示了DNSConstants.FLAGS_QR_QUERY属性的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: run

@Override
public void run() {
    try {
        if (this.getDns().isCanceling() || this.getDns().isCanceled()) {
            this.cancel();
        } else {
            if (_count++ < 3) {
                if (logger.isLoggable(Level.FINER)) {
                    logger.finer(this.getName() + ".run() JmDNS " + this.description());
                }
                DNSOutgoing out = new DNSOutgoing(DNSConstants.FLAGS_QR_QUERY);
                out = this.addQuestions(out);
                if (this.getDns().isAnnounced()) {
                    out = this.addAnswers(out);
                }
                if (!out.isEmpty()) {
                    this.getDns().send(out);
                }
            } else {
                // After three queries, we can quit.
                this.cancel();
            }
        }
    } catch (Throwable e) {
        logger.log(Level.WARNING, this.getName() + ".run() exception ", e);
        this.getDns().recover();
    }
}
 
开发者ID:iilxy,项目名称:AndroidmDNS,代码行数:28,代码来源:DNSResolverTask.java

示例2: createOugoing

@Override
protected DNSOutgoing createOugoing() {
    return new DNSOutgoing(DNSConstants.FLAGS_QR_QUERY);
}
 
开发者ID:iilxy,项目名称:AndroidmDNS,代码行数:4,代码来源:Prober.java

示例3: isQuery

@Override
public boolean isQuery() {
    return (this.getFlags() & DNSConstants.FLAGS_QR_MASK) == DNSConstants.FLAGS_QR_QUERY;
}
 
开发者ID:DeviceConnect,项目名称:DeviceConnect-Android,代码行数:4,代码来源:DNSOutgoing.java

示例4: createOugoing

@Override
protected DNSOutgoing createOugoing()
{
    return new DNSOutgoing(DNSConstants.FLAGS_QR_QUERY);
}
 
开发者ID:blackshadowwalker,项目名称:log4j-collector,代码行数:5,代码来源:Prober.java

示例5: run

@Override
public void run()
{
    try
    {
        if (this.getDns().isCanceling() || this.getDns().isCanceled())
        {
            this.cancel();
        }
        else
        {
            if (_count++ < 3)
            {
                if (logger.isLoggable(Level.FINER))
                {
                    logger.finer(this.getName() + ".run() JmDNS " + this.description());
                }
                DNSOutgoing out = new DNSOutgoing(DNSConstants.FLAGS_QR_QUERY);
                out = this.addQuestions(out);
                if (this.getDns().isAnnounced())
                {
                    out = this.addAnswers(out);
                }
                if (!out.isEmpty())
                {
                    this.getDns().send(out);
                }
            }
            else
            {
                // After three queries, we can quit.
                this.cancel();
            }
        }
    }
    catch (Throwable e)
    {
        logger.log(Level.WARNING, this.getName() + ".run() exception ", e);
        this.getDns().recover();
    }
}
 
开发者ID:blackshadowwalker,项目名称:log4j-collector,代码行数:41,代码来源:DNSResolverTask.java

示例6: isQuery

@Override
public boolean isQuery()
{
    return (this.getFlags() & DNSConstants.FLAGS_QR_MASK) == DNSConstants.FLAGS_QR_QUERY;
}
 
开发者ID:blackshadowwalker,项目名称:log4j-collector,代码行数:5,代码来源:DNSOutgoing.java

示例7: isQuery

/**
 * Check if the message is a query.
 *
 * @return true is the message is a query
 */
public boolean isQuery() {
    return (_flags & DNSConstants.FLAGS_QR_MASK) == DNSConstants.FLAGS_QR_QUERY;
}
 
开发者ID:iilxy,项目名称:AndroidmDNS,代码行数:8,代码来源:DNSMessage.java

示例8: isQuery

/**
 * Check if the message is a query.
 * 
 * @return true is the message is a query
 */
public boolean isQuery() {
    return (_flags & DNSConstants.FLAGS_QR_MASK) == DNSConstants.FLAGS_QR_QUERY;
}
 
开发者ID:DeviceConnect,项目名称:DeviceConnect-Android,代码行数:8,代码来源:DNSMessage.java

示例9: isQuery

/**
 * Check if the message is a query.
 *
 * @return true is the message is a query
 */
public boolean isQuery()
{
    return (_flags & DNSConstants.FLAGS_QR_MASK) == DNSConstants.FLAGS_QR_QUERY;
}
 
开发者ID:blackshadowwalker,项目名称:log4j-collector,代码行数:9,代码来源:DNSMessage.java


注:本文中的javax.jmdns.impl.constants.DNSConstants.FLAGS_QR_QUERY属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。