Class ServiceDiscovery.SDAnswer

java.lang.Object
org.ka2ddo.yaac.util.ServiceDiscovery.SDAnswer
Enclosing class:
ServiceDiscovery

public static class ServiceDiscovery.SDAnswer extends Object
Structure containing one (of possibly several) successful answers for looking up a service by Service Discovery.
Author:
Andrew Pavlin, KA2DDO
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Numeric IPv4 or IPv6 address of the host, or null if only the domain name is known.
    Fully qualified domain name of host providing the service, or null if not known.
    Registered name of this particular service instance.
    int
    Numeric TCP or UDP port number of the service (zero if not known).
    Internet protocol type to use to reach this service, or null if not known.
    Original service type request.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a string representation of the object.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • serviceType

      public String serviceType
      Original service type request.
    • protocol

      public ServiceDiscovery.Protocol protocol
      Internet protocol type to use to reach this service, or null if not known.
    • name

      public String name
      Registered name of this particular service instance.
    • hostname

      public String hostname
      Fully qualified domain name of host providing the service, or null if not known.
    • address

      public String address
      Numeric IPv4 or IPv6 address of the host, or null if only the domain name is known.
    • port

      public int port
      Numeric TCP or UDP port number of the service (zero if not known).
  • Constructor Details

    • SDAnswer

      public SDAnswer()
  • Method Details

    • toString

      public String toString()
      Returns a string representation of the object.
      Overrides:
      toString in class Object
      Returns:
      a string representation of the object.