Class ServiceData

java.lang.Object
edu.wpi.first.net.ServiceData

public class ServiceData extends Object
Service data for MulticastServiceResolver.
  • Constructor Details

    • ServiceData

      public ServiceData(long ipv4Address, int port, String serviceName, String hostName, String[] keys, String[] values)
      Constructs a ServiceData.
      Parameters:
      ipv4Address - ipv4Address
      port - port
      serviceName - found service name
      hostName - found host name
      keys - txt keys
      values - txt values
  • Method Details

    • getTxt

      public Map<String,String> getTxt()
      Returns service data payload.
      Returns:
      Service data payload.
    • getHostName

      public String getHostName()
      Returns host name.
      Returns:
      Host name.
    • getServiceName

      Returns service name.
      Returns:
      Service name.
    • getPort

      public int getPort()
      Returns port number.
      Returns:
      Port number.
    • getIpv4Address

      public long getIpv4Address()
      Returns IPv4 address.
      Returns:
      IPv4 address.