Package edu.wpi.first.net
Class ServiceData
java.lang.Object
edu.wpi.first.net.ServiceData
public class ServiceData extends Object
Service data for MulticastServiceResolver.
-
Constructor Summary
Constructors Constructor Description ServiceData(long ipv4Address, int port, String serviceName, String hostName, String[] keys, String[] values)
Constructs a ServiceData. -
Method Summary
Modifier and Type Method Description String
getHostName()
Returns host name.long
getIpv4Address()
Returns IPv4 address.int
getPort()
Returns port number.String
getServiceName()
Returns service name.Map<String,String>
getTxt()
Returns service data payload.
-
Constructor Details
-
ServiceData
public ServiceData(long ipv4Address, int port, String serviceName, String hostName, String[] keys, String[] values)Constructs a ServiceData.- Parameters:
ipv4Address
- ipv4Addressport
- portserviceName
- found service namehostName
- found host namekeys
- txt keysvalues
- txt values
-
-
Method Details
-
getTxt
Returns service data payload.- Returns:
- Service data payload.
-
getHostName
Returns host name.- Returns:
- Host name.
-
getServiceName
Returns service name.- Returns:
- Service name.
-
getPort
Returns port number.- Returns:
- Port number.
-
getIpv4Address
Returns IPv4 address.- Returns:
- IPv4 address.
-