/** * Send an outgoing multicast DNS message. * * @param out * @exception IOException */ public void send(DNSOutgoing out) throws IOException { if (!out.isEmpty()) { byte[] message = out.data(); final DatagramPacket packet = new DatagramPacket(message, message.length, _group, DNSConstants.MDNS_PORT); if (logger.isLoggable(Level.FINEST)) { try { final DNSIncoming msg = new DNSIncoming(packet); if (logger.isLoggable(Level.FINEST)) { logger.finest("send(" + this.getName() + ") JmDNS out:" + msg.print(true)); } } catch (final IOException e) { logger.throwing(getClass().toString(), "send(" + this.getName() + ") - JmDNS can not parse what it sends!!!", e); } } final MulticastSocket ms = _socket; if (ms != null && !ms.isClosed()) { ms.send(packet); } } }
/** * Send an outgoing multicast DNS message. * * @param out * @exception IOException */ public void send(DNSOutgoing out) throws IOException { if (!out.isEmpty()) { byte[] message = out.data(); final DatagramPacket packet = new DatagramPacket(message, message.length, _group, DNSConstants.MDNS_PORT); if (logger.isLoggable(Level.FINEST)) { try { final DNSIncoming msg = new DNSIncoming(packet); if (logger.isLoggable(Level.FINEST)) { logger.finest("send(" + this.getName() + ") JmDNS out:" + msg.print(true)); } } catch (final IOException e) { logger.throwing(getClass().toString(), "send(" + this.getName() + ") - JmDNS can not parse what it sends!!!", e); } } final MulticastSocket ms = _socket; if (ms != null && !ms.isClosed()) { ms.send(packet); } } }
/** * Send an outgoing multicast DNS message. * * @param out * @exception IOException */ public void send(DNSOutgoing out) throws IOException { if (!out.isEmpty()) { byte[] message = out.data(); final DatagramPacket packet = new DatagramPacket(message, message.length, _group, DNSConstants.MDNS_PORT); if (logger.isLoggable(Level.FINEST)) { try { final DNSIncoming msg = new DNSIncoming(packet); if (logger.isLoggable(Level.FINEST)) { logger.finest("send(" + this.getName() + ") JmDNS out:" + msg.print(true)); } } catch (final IOException e) { logger.throwing(getClass().toString(), "send(" + this.getName() + ") - JmDNS can not parse what it sends!!!", e); } } final MulticastSocket ms = _socket; if (ms != null && !ms.isClosed()) { ms.send(packet); } } }
private DNSQuestion readQuestion() { String domain = _messageInputStream.readName(); DNSRecordType type = DNSRecordType.typeForIndex(_messageInputStream.readUnsignedShort()); if (type == DNSRecordType.TYPE_IGNORE) { logger.log(Level.SEVERE, "Could not find record type: " + this.print(true)); } int recordClassIndex = _messageInputStream.readUnsignedShort(); DNSRecordClass recordClass = DNSRecordClass.classForIndex(recordClassIndex); boolean unique = recordClass.isUnique(recordClassIndex); return DNSQuestion.newQuestion(domain, type, recordClass, unique); }
private DNSQuestion readQuestion() { String domain = _messageInputStream.readName(); DNSRecordType type = DNSRecordType.typeForIndex(_messageInputStream.readUnsignedShort()); if (type == DNSRecordType.TYPE_IGNORE) { logger.warn("Could not find record type: {}", this.print(true)); } int recordClassIndex = _messageInputStream.readUnsignedShort(); DNSRecordClass recordClass = DNSRecordClass.classForIndex(recordClassIndex); boolean unique = recordClass.isUnique(recordClassIndex); return DNSQuestion.newQuestion(domain, type, recordClass, unique); }
final DNSIncoming msg = new DNSIncoming(packet); if (logger.isTraceEnabled()) { logger.trace("send({}) JmDNS out:{}", this.getName(), msg.print(true));
private DNSQuestion readQuestion() { String domain = _messageInputStream.readName(); DNSRecordType type = DNSRecordType.typeForIndex(_messageInputStream.readUnsignedShort()); if (type == DNSRecordType.TYPE_IGNORE) { logger.log(Level.SEVERE, "Could not find record type: " + this.print(true)); } int recordClassIndex = _messageInputStream.readUnsignedShort(); DNSRecordClass recordClass = DNSRecordClass.classForIndex(recordClassIndex); boolean unique = recordClass.isUnique(recordClassIndex); return DNSQuestion.newQuestion(domain, type, recordClass, unique); }
private DNSQuestion readQuestion() { String domain = _messageInputStream.readName(); DNSRecordType type = DNSRecordType.typeForIndex(_messageInputStream.readUnsignedShort()); if (type == DNSRecordType.TYPE_IGNORE) { logger.log(Level.SEVERE, "Could not find record type: " + this.print(true)); } int recordClassIndex = _messageInputStream.readUnsignedShort(); DNSRecordClass recordClass = DNSRecordClass.classForIndex(recordClassIndex); boolean unique = recordClass.isUnique(recordClassIndex); return DNSQuestion.newQuestion(domain, type, recordClass, unique); }
logger.log(Level.WARNING, "DNSIncoming() dump " + print(true) + "\n exception ", e);
logger.warn("DNSIncoming() dump " + print(true) + "\n exception ", e);
logger.log(Level.WARNING, "DNSIncoming() dump " + print(true) + "\n exception ", e);
logger.log(Level.WARNING, "DNSIncoming() dump " + print(true) + "\n exception ", e);
logger.finest(this.getName() + ".run() JmDNS in:" + msg.print(true));
logger.finest(this.getName() + ".run() JmDNS in:" + msg.print(true));
logger.finest(this.getName() + ".run() JmDNS in:" + msg.print(true));