Tabnine Logo
HostInfo.getInet6Address
Code IndexAdd Tabnine to your IDE (free)

How to use
getInet6Address
method
in
javax.jmdns.impl.HostInfo

Best Java code snippets using javax.jmdns.impl.HostInfo.getInet6Address (Showing top 4 results out of 315)

origin: org.jmdns/jmdns

/**
 * {@inheritDoc}
 */
@Override
public void registerService(ServiceInfo infoAbstract) throws IOException {
  if (this.isClosing() || this.isClosed()) {
    throw new IllegalStateException("This DNS is closed.");
  }
  final ServiceInfoImpl info = (ServiceInfoImpl) infoAbstract;
  if (info.getDns() != null) {
    if (info.getDns() != this) {
      throw new IllegalStateException("A service information can only be registered with a single instamce of JmDNS.");
    } else if (_services.get(info.getKey()) != null) {
      throw new IllegalStateException("A service information can only be registered once.");
    }
  }
  info.setDns(this);
  this.registerServiceType(info.getTypeWithSubtype());
  // bind the service to this address
  info.recoverState();
  info.setServer(_localHost.getName());
  info.addAddress(_localHost.getInet4Address());
  info.addAddress(_localHost.getInet6Address());
  this.makeServiceNameUnique(info);
  while (_services.putIfAbsent(info.getKey(), info) != null) {
    this.makeServiceNameUnique(info);
  }
  this.startProber();
  logger.debug("registerService() JmDNS registered service as {}", info);
}
origin: javax.jmdns/jmdns

info.setServer(_localHost.getName());
info.addAddress(_localHost.getInet4Address());
info.addAddress(_localHost.getInet6Address());
origin: DeviceConnect/DeviceConnect-Android

info.setServer(_localHost.getName());
info.addAddress(_localHost.getInet4Address());
info.addAddress(_localHost.getInet6Address());
origin: org.jenkins-ci/jmdns

/**
 * {@inheritDoc}
 */
@Override
public void registerService(ServiceInfo infoAbstract) throws IOException {
  if (this.isClosing() || this.isClosed()) {
    throw new IllegalStateException("This DNS is closed.");
  }
  final ServiceInfoImpl info = (ServiceInfoImpl) infoAbstract;
  if ((info.getDns() != null) && (info.getDns() != this)) {
    throw new IllegalStateException("This service information is already registered with another DNS.");
  }
  info.setDns(this);
  this.registerServiceType(info.getTypeWithSubtype());
  // bind the service to this address
  info.setServer(_localHost.getName());
  info.addAddress(_localHost.getInet4Address());
  info.addAddress(_localHost.getInet6Address());
  this.waitForAnnounced(DNSConstants.SERVICE_INFO_TIMEOUT);
  this.makeServiceNameUnique(info);
  while (_services.putIfAbsent(info.getKey(), info) != null) {
    this.makeServiceNameUnique(info);
  }
  this.startProber();
  info.waitForAnnounced(DNSConstants.SERVICE_INFO_TIMEOUT);
  if (logger.isLoggable(Level.FINE)) {
    logger.fine("registerService() JmDNS registered service as " + info);
  }
}
javax.jmdns.implHostInfogetInet6Address

Popular methods of HostInfo

  • getInetAddress
  • getName
  • <init>
  • advanceState
  • answers
  • associateWithTask
  • cancelState
  • closeState
  • getDNS4AddressRecord
  • getDNS4ReverseAddressRecord
  • getDNS6AddressRecord
  • getDNS6ReverseAddressRecord
  • getDNS6AddressRecord,
  • getDNS6ReverseAddressRecord,
  • getDNSAddressRecord,
  • getDNSReverseAddressRecord,
  • getInet4Address,
  • getInterface,
  • incrementHostName,
  • isAnnounced,
  • isAnnouncing

Popular in Java

  • Making http post requests using okhttp
  • runOnUiThread (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • requestLocationUpdates (LocationManager)
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Notification (javax.management)
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now