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


Java DNSConstants.MAX_MSG_TYPICAL属性代码示例

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


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

示例1: DNSOutgoing

/**
 * Create an outgoing query or response.
 *
 * @param flags
 * @param multicast
 * @param senderUDPPayload
 *            The sender's UDP payload size is the number of bytes of the largest UDP payload that can be reassembled and delivered in the sender's network stack.
 */
public DNSOutgoing(int flags, boolean multicast, int senderUDPPayload) {
    super(flags, 0, multicast);
    _names = new HashMap<String, Integer>();
    _maxUDPPayload = (senderUDPPayload > 0 ? senderUDPPayload : DNSConstants.MAX_MSG_TYPICAL);
    _questionsBytes = new MessageOutputStream(senderUDPPayload, this);
    _answersBytes = new MessageOutputStream(senderUDPPayload, this);
    _authoritativeAnswersBytes = new MessageOutputStream(senderUDPPayload, this);
    _additionalsAnswersBytes = new MessageOutputStream(senderUDPPayload, this);
}
 
开发者ID:iilxy,项目名称:AndroidmDNS,代码行数:17,代码来源:DNSOutgoing.java

示例2: DNSOutgoing

/**
 * Create an outgoing query or response.
 * 
 * @param flags
 * @param multicast
 * @param senderUDPPayload
 *            The sender's UDP payload size is the number of bytes of the largest UDP payload that can be reassembled and delivered in the sender's network stack.
 */
public DNSOutgoing(int flags, boolean multicast, int senderUDPPayload) {
    super(flags, 0, multicast);
    _names = new HashMap<String, Integer>();
    _maxUDPPayload = (senderUDPPayload > 0 ? senderUDPPayload : DNSConstants.MAX_MSG_TYPICAL);
    _questionsBytes = new MessageOutputStream(senderUDPPayload, this);
    _answersBytes = new MessageOutputStream(senderUDPPayload, this);
    _authoritativeAnswersBytes = new MessageOutputStream(senderUDPPayload, this);
    _additionalsAnswersBytes = new MessageOutputStream(senderUDPPayload, this);
}
 
开发者ID:DeviceConnect,项目名称:DeviceConnect-Android,代码行数:17,代码来源:DNSOutgoing.java

示例3: DNSOutgoing

/**
 * Create an outgoing query or response.
 *
 * @param flags
 * @param multicast
 * @param senderUDPPayload
 *            The sender's UDP payload size is the number of bytes of the largest UDP payload that can be reassembled and delivered in the sender's network stack.
 */
public DNSOutgoing(int flags, boolean multicast, int senderUDPPayload)
{
    super(flags, 0, multicast);
    _names = new HashMap<String, Integer>();
    _maxUDPPayload = (senderUDPPayload > 0 ? senderUDPPayload : DNSConstants.MAX_MSG_TYPICAL);
    _questionsBytes = new MessageOutputStream(senderUDPPayload, this);
    _answersBytes = new MessageOutputStream(senderUDPPayload, this);
    _authoritativeAnswersBytes = new MessageOutputStream(senderUDPPayload, this);
    _additionalsAnswersBytes = new MessageOutputStream(senderUDPPayload, this);
}
 
开发者ID:blackshadowwalker,项目名称:log4j-collector,代码行数:18,代码来源:DNSOutgoing.java


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