Package edu.wpi.first.net
Class ServiceData
java.lang.Object
edu.wpi.first.net.ServiceData
Service data for MulticastServiceResolver.
-
Constructor Summary
ConstructorDescriptionServiceData
(long ipv4Address, int port, String serviceName, String hostName, String[] keys, String[] values) Constructs a ServiceData. -
Method Summary
-
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.
-