PROTOCOLS
HostNameResolver
Defined in fuchsia.net.mdns/host_name_resolver.fidl
Discoverable protocol for resolving host names to IP addresses.
ResolveHostName
Gets the addresses for the specified host.
- request
host
the simple name of the host. - request
timeout
specifies how long the service should wait before giving up when waiting for a response to a resolution query. In typical use, a timeout of two or three seconds is recommended. - request
options
options to be applied to the resolution.
- response
addresses
the addresses of the specified host, if it was found, an empty vector if not.
Request
Name | Type |
---|---|
host |
host_name
|
timeout |
zx/Duration
|
options |
HostNameResolutionOptions
|
Response
Name | Type |
---|---|
addresses |
vector<HostAddress>:64
|
HostNameSubscriber
Defined in fuchsia.net.mdns/host_name_subscriber.fidl
Discoverable protocol for subscribing to address changes for given host names.
SubscribeToHostName
Gets the addresses for the specified host.
- request
host
the simple name of the host. - request
options
options to be applied to the subscription. - request
listener
client end of theHostNameSubscriptionListener
channel.
Request
Name | Type |
---|---|
host |
host_name
|
options |
HostNameSubscriptionOptions
|
listener |
client_end:HostNameSubscriptionListener
|
HostNameSubscriptionListener
Defined in fuchsia.net.mdns/host_name_subscriber.fidl
Client-implemented interface for subscribers. Method replies are used to throttle traffic. The service won't necessarily wait for a reply before calling another method.
OnAddressesChanged
Notifies the subscriber that the addresses associated with a host name have changed.
Request
Name | Type |
---|---|
addresses |
vector<HostAddress>:64
|
Response
<EMPTY>
ProxyHostPublisher
Defined in fuchsia.net.mdns/proxy_host_publisher.fidl
Discoverable protocol for publishing on behalf of another host.
PublishProxyHost
Publishes a host name on behalf of a remote host and provides a ServiceInstancePublisher
for publishing service instances on behalf of that host.
- request
host
host name to publish. - request
addresses
addresses to publish for the host name. - request
options
options to be applied to the publication. - request
service_instance_publisher
server end of theServiceInstancePublisher
for the proxied host.
This method causes the service to publish the host name at the specified addresses. The
actual host must not be present on any relevant links or there will be a conflict. If
the perform_probe
option is true or not supplied (true by default), a probe will occur
to verify that the host name isn't otherwise published.
The proxy host created by this method persists until the ServiceInstancePublisher
channel is closed.
Request
Name | Type |
---|---|
host |
host_name
|
addresses |
vector<fuchsia.net/IpAddress>:64
|
options |
ProxyHostPublicationOptions
|
service_instance_publisher |
server_end:ServiceInstancePublisher
|
Response
Name | Type |
---|---|
payload |
ProxyHostPublisher_PublishProxyHost_Result
|
PublicationResponder
Defined in fuchsia.net.mdns/mdns.fidl
Client-supplied publication responder interface.
OnPublication
Provides instance information for initial announcements and query
responses relating to the service instance specified in
ServiceInstancePublisher.PublishServiceInstance
. If the publication relates to a
subtype of the service, subtype
contains the subtype, otherwise
it is null. If publication
is null, no announcement or response is
transmitted. Strings in text
are transmitted in the TXT record.
Request
Name | Type |
---|---|
publication_cause |
PublicationCause
|
subtype |
subtype_name
|
source_addresses |
vector<fuchsia.net/IpAddress>:64
|
Response
Name | Type |
---|---|
publication |
Publication?
|
Reannounce
Initiates reannouncement of the service instance due to a change in the
instance's port number or text strings. All announcements are filtered
through OnPublication
, which replies with the new port and text
values.
Response
<EMPTY>
SetSubtypes
Sets the subtypes for the service instance. The specified subtypes will be announced subject to filtering through the responder. The initial subtype collection is empty.
Response
Name | Type |
---|---|
subtypes |
vector<subtype_name>:256
|
Publisher
Defined in fuchsia.net.mdns/mdns.fidl
Discoverable protocol for publishing service instances. Deprecated: use ServiceInstancePublisher.
PublishServiceInstance
Publishes a service instance. publication_responder
is consulted via its
OnPublication
method for initial announcements and to answer queries.
The service is published until the publication_responder
channel closes. In
addition to announcements and queries for the service type, all queries
for subtypes are answered subject to filtering through the responder.
perform_probe
indicates whether a probe for a conflicting instance
should be performed before publishing the instance. This value should
be true
unless the instance name is known to be unique.
If a service with the same service and instance names is already published, the old publication will be terminated, and the responder channel for the old publication will be closed.
Request
Name | Type |
---|---|
service |
service_name
|
instance |
instance_name
|
media |
Media
|
perform_probe |
bool
|
publication_responder |
client_end:PublicationResponder
|
Response
Name | Type |
---|---|
payload |
Publisher_PublishServiceInstance_Result
|
Resolver
Defined in fuchsia.net.mdns/mdns.fidl
Discoverable protocol for resolving host names to IP addresses. Deprecated: use HostNameResolver.
ResolveHostName
Gets the addresses for the specified host. timeout
specifies how long
the service should wait before giving up when waiting for a response to
a resolution query. In typical use, a timeout of two or three seconds
is recommended.
A successful resolution may return one or both addresses. An unsuccessful resolution is indicated when both addresses are null.
Request
Name | Type |
---|---|
host |
host_name
|
timeout |
zx/Duration
|
Response
Name | Type |
---|---|
v4_address |
fuchsia.net/Ipv4Address?
|
v6_address |
fuchsia.net/Ipv6Address?
|
ServiceInstancePublicationResponder
Defined in fuchsia.net.mdns/service_instance_publisher.fidl
Client-supplied publication responder interface.
OnPublication
Provides instance information for initial announcements and query
responses relating to the service instance specified in
ServiceInstancePublisher.PublishServiceInstance
.
- request
publication_cause
the action that motivates this publication. - request
subtype
the subtype if the publication relates to a subtype of the service, otherwise null. - request
source_addresses
addresses from which queries arrived, if applicable.
- response
publication
the desired publication. Strings inpublication.text
are sent in the TXT resource.
- error indicates the publication should not be sent.
If no publication should be sent, this method should return a DO_NOT_RESPOND
error.
Request
Name | Type |
---|---|
publication_cause |
ServiceInstancePublicationCause
|
subtype |
subtype_name
|
source_addresses |
vector<fuchsia.net/IpAddress>:64
|
Response
Name | Type |
---|---|
payload |
ServiceInstancePublicationResponder_OnPublication_Result
|
Reannounce
Initiates reannouncement of the service instance due to a change in the
instance's port number or text strings. All announcements are filtered
through OnPublication
, which replies with the new port and text
values.
Response
<EMPTY>
SetSubtypes
Sets the subtypes for the service instance. The specified subtypes will be announced subject to filtering through the responder. The initial subtype collection is empty.
Response
Name | Type |
---|---|
subtypes |
vector<subtype_name>:256
|
ServiceInstancePublisher
Defined in fuchsia.net.mdns/service_instance_publisher.fidl
Discoverable protocol for publishing service instances.
PublishServiceInstance
Publishes a service instance. publication_responder
is consulted via its
OnPublication
method for initial announcements and to answer queries.
The service is published until the publication_responder
channel closes. In
addition to announcements and queries for the service type, all queries
for subtypes are answered subject to filtering through the responder.
- request
service
name of the type of service to be published. For example, cast uses '_googlecast._tcp.'. - request
instance
name of the instance to be published. This is often a descriptive name such asOffice Printer
or a name containing a large random number. - request
options
options to be applied to the publication. - request
publication_responder
client end of theServiceInstancePublicationResponder
channel consulted when formulating service instance announcements and query responses.
- error reason the requested operation failed.
If a service with the same service and instance names is already published, the old publication will be terminated, and the responder channel for the old publication will be closed.
Request
Name | Type |
---|---|
service |
service_name
|
instance |
instance_name
|
options |
ServiceInstancePublicationOptions
|
publication_responder |
client_end:ServiceInstancePublicationResponder
|
Response
Name | Type |
---|---|
payload |
ServiceInstancePublisher_PublishServiceInstance_Result
|
ServiceInstanceResolver
Defined in fuchsia.net.mdns/service_instance_resolver.fidl
Discoverable protocol for resolving service instances.
ResolveServiceInstance
Resolves a specific service instance by sending an SRV query and returns the endpoints, target and text records.
- request
service
name of the type of service to be resolved. For example, cast uses '_googlecast._tcp.'. - request
instance
name of the instance to be resolved. This is often a descriptive name such asOffice Printer
or a name containing a large random number. - request
timeout
specifies how long the service should wait before giving up when waiting for a response to a resolution query. - request
options
options to be applied to the resolution.
A successful resolution will return target and at least one endpoint. Unsuccessful resolution occurs when either the service instance doesn't respond or there is no endpoint (IP & port).
Request
Name | Type |
---|---|
service |
service_name
|
instance |
instance_name
|
timeout |
zx/Duration
|
options |
ServiceInstanceResolutionOptions
|
Response
Name | Type |
---|---|
instance |
ServiceInstance
|
ServiceSubscriber
Defined in fuchsia.net.mdns/mdns.fidl
Client-implemented interface for subscribers. Method replies are used to throttle traffic. The service won't necessarily wait for a reply before calling another method.
OnInstanceChanged
Notifies the subscriber that addresses or text for a known service instance have changed.
Request
Name | Type |
---|---|
instance |
ServiceInstance
|
Response
<EMPTY>
OnInstanceDiscovered
Notifies the subscriber that a service instance has been discovered.
Request
Name | Type |
---|---|
instance |
ServiceInstance
|
Response
<EMPTY>
OnInstanceLost
Notifies the subscriber that a known service instance has been lost.
Request
Name | Type |
---|---|
service |
service_name
|
instance |
instance_name
|
Response
<EMPTY>
OnQuery
Notifies the subscriber that a PTR query has been sent.
Request
Name | Type |
---|---|
resource_type |
ResourceType
|
Response
<EMPTY>
ServiceSubscriber2
Defined in fuchsia.net.mdns/service_subscriber.fidl
Discoverable protocol for finding service instances.
SubscribeToAllServices
Subscribes to all services. The subscription lasts until subscriber
is unbound.
- request
options
options to be applied to the subscription. - request
listener
client end of theServiceSubscriptionListener
channel.
Request
Name | Type |
---|---|
options |
ServiceSubscriptionOptions
|
listener |
client_end:ServiceSubscriptionListener
|
SubscribeToService
Subscribes to a service. The subscription lasts until subscriber
is unbound.
- request
service
name of the type of service to which to subscribe. For example, cast uses '_googlecast._tcp.'. If this value is not a valid service name,subscriber
is closed immediately and an error message is logged. - request
options
options to be applied to the subscription. - request
listener
client end of theServiceSubscriptionListener
channel.
Request
Name | Type |
---|---|
service |
service_name
|
options |
ServiceSubscriptionOptions
|
listener |
client_end:ServiceSubscriptionListener
|
ServiceSubscriptionListener
Defined in fuchsia.net.mdns/service_subscriber.fidl
Client-implemented interface for subscribers. Method replies are used to throttle traffic. The service won't necessarily wait for a reply before calling another method.
OnInstanceChanged
Notifies the subscriber that addresses or text for a known service instance have changed.
Request
Name | Type |
---|---|
instance |
ServiceInstance
|
Response
<EMPTY>
OnInstanceDiscovered
Notifies the subscriber that a service instance has been discovered.
Request
Name | Type |
---|---|
instance |
ServiceInstance
|
Response
<EMPTY>
OnInstanceLost
Notifies the subscriber that a known service instance has been lost.
Request
Name | Type |
---|---|
service |
service_name
|
instance |
instance_name
|
Response
<EMPTY>
OnQuery
Notifies the subscriber that a PTR query has been sent.
Request
Name | Type |
---|---|
resource_type |
ResourceType
|
Response
<EMPTY>
Subscriber
Defined in fuchsia.net.mdns/mdns.fidl
Discoverable protocol for finding service instances. Deprecated: use ServiceInstanceSubscriber.
SubscribeToService
Subscribes to a service. The subscription lasts until subscriber
is
unbound.
Request
Name | Type |
---|---|
service |
service_name
|
subscriber |
client_end:ServiceSubscriber
|
STRUCTS
HostAddress
Defined in fuchsia.net.mdns/host_name_resolver.fidl
An IPv4 or IPv6 host address with the id of the interface through which the address was received.
Field | Type | Description | Default |
---|---|---|---|
address |
fuchsia.net/IpAddress
|
IPv4 or IPv6 host address. In the case of the local host, this will be the address of the
interface idenfied by |
No default |
interface |
fuchsia.net/InterfaceId
|
Interface through which the address was received. In the case of the local host, this will
be the interface id of the interface whose address is given by |
No default |
ttl |
zx/Duration
|
Time-to-live of the relevant A or AAAA resource. In the case of the local host or local proxy hosts, this value will be 2 minutes, the default A/AAAA TTL. |
No default |
ProxyHostPublisher_PublishProxyHost_Response
Defined in fuchsia.net.mdns/proxy_host_publisher.fidl
<EMPTY>
Publication
Defined in fuchsia.net.mdns/mdns.fidl
Describes an initial instance announcement or query response. In typical
use, the default SRV priority, SRV weight and TTL values should be used. TTL
values are rounded down to the nearest second. TTL values less than one
second are not permitted and will result in the PublicationResponder
channel being closed.
Field | Type | Description | Default |
---|---|---|---|
port |
uint16
|
The port at which the service instance is addressable. |
No default |
text |
vector<txt_string>:256
|
Text strings describing the instance. |
No default |
srv_priority |
uint16
|
The priority of the SRV resource record for this publication. See RFC6763 for details. |
DEFAULT_SRV_PRIORITY |
srv_weight |
uint16
|
The weight of the SRV resource record for this publication. See RFC6763 for details. |
DEFAULT_SRV_WEIGHT |
ptr_ttl |
zx/Duration
|
Time-to-live for PTR resource records. |
DEFAULT_PTR_TTL |
srv_ttl |
zx/Duration
|
Time-to-live for SRV resource records. |
DEFAULT_SRV_TTL |
txt_ttl |
zx/Duration
|
Time-to-live for TXT resource records. |
DEFAULT_TXT_TTL |
Publisher_PublishServiceInstance_Response
Defined in fuchsia.net.mdns/mdns.fidl
<EMPTY>
ServiceInstancePublicationResponder_OnPublication_Response
Defined in fuchsia.net.mdns/service_instance_publisher.fidl
Field | Type | Description | Default |
---|---|---|---|
publication |
ServiceInstancePublication
|
No default |
ServiceInstancePublisher_PublishServiceInstance_Response
Defined in fuchsia.net.mdns/service_instance_publisher.fidl
<EMPTY>
ENUMS
Error strict
Type: uint32
Defined in fuchsia.net.mdns/mdns.fidl
Error values for instance publishing.
Name | Value | Description |
---|---|---|
INVALID_SERVICE_NAME |
1 |
The specified service name is invalid. |
INVALID_INSTANCE_NAME |
2 |
The specified instance name is invalid. |
ALREADY_PUBLISHED_ON_SUBNET |
4 |
The specified service instance is already being published by another host on the subnet. This result occurs when an initial probe discovers a conflicting instance. |
INVALID_MEDIA |
5 |
OnPublicationError strict
Type: uint32
Defined in fuchsia.net.mdns/service_instance_publisher.fidl
Error values for ServiceInstancePublicationResponder.OnPublication
.
Name | Value | Description |
---|---|---|
DO_NOT_RESPOND |
1 |
Indicates the publisher should not respond to this publication request. |
PublicationCause strict
Type: uint32
Defined in fuchsia.net.mdns/mdns.fidl
Describes the cause of a publication.
Name | Value | Description |
---|---|---|
ANNOUNCEMENT |
1 |
Indicates the publication is part of an initial announcement. |
QUERY_MULTICAST_RESPONSE |
2 |
Indicates the publication is in response to a question that requests a multicast response. |
QUERY_UNICAST_RESPONSE |
3 |
Indicates the publication is in response to a question that requests a unicast response. |
PublishProxyHostError flexible
Type: uint32
Defined in fuchsia.net.mdns/proxy_host_publisher.fidl
Error values for ProxyHostPublisher.PublishProxyHost
.
Name | Value | Description |
---|---|---|
ALREADY_PUBLISHED_LOCALLY |
1 |
The specified host name is already being published by the mDNS local implementation. |
ALREADY_PUBLISHED_ON_SUBNET |
2 |
The specified host name is already being published by another host on the subnet. This result occurs when an initial probe discovers a conflicting host name. |
PublishServiceInstanceError strict
Type: uint32
Defined in fuchsia.net.mdns/service_instance_publisher.fidl
Error values for ServiceInstancePublisher.PublishServiceInstance
.
Name | Value | Description |
---|---|---|
ALREADY_PUBLISHED_LOCALLY |
1 |
The specified service instance is already being published by the mDNS local implementation. |
ALREADY_PUBLISHED_ON_SUBNET |
2 |
The specified service instance is already being published by another host on the subnet. This result occurs when an initial probe discovers a conflicting service instance. |
ResourceType strict
Type: uint32
Defined in fuchsia.net.mdns/service_subscriber.fidl
DNS resource types.
Name | Value | Description |
---|---|---|
PTR |
12 |
Domain name pointer. |
ANY |
255 |
Any (wildcard) type. |
ServiceInstancePublicationCause strict
Type: uint32
Defined in fuchsia.net.mdns/service_instance_publisher.fidl
Describes the cause of a publication.
Name | Value | Description |
---|---|---|
ANNOUNCEMENT |
1 |
Indicates the publication is part of an initial announcement. |
QUERY_MULTICAST_RESPONSE |
2 |
Indicates the publication is in response to a question that requests a multicast response. |
QUERY_UNICAST_RESPONSE |
3 |
Indicates the publication is in response to a question that requests a unicast response. |
TABLES
HostNameResolutionOptions
Defined in fuchsia.net.mdns/host_name_resolver.fidl
Options for HostNameResolver.ResolveHostName
.
Ordinal | Field | Type | Description |
---|---|---|---|
1 |
media |
Media
|
The media (wired, wireless, both) of the interfaces on which the host name should be resolved. The default is both wired and wireless media. |
2 |
ip_versions |
IpVersions
|
The IP versions (V4, V6, both) with which the host name should resolved. The default value is both IPv4 and IPv6. |
3 |
exclude_local |
bool
|
|
4 |
exclude_local_proxies |
bool
|
HostNameSubscriptionOptions
Defined in fuchsia.net.mdns/host_name_subscriber.fidl
Options for HostNameSubscriber.SubscribeToHostName
.
Ordinal | Field | Type | Description |
---|---|---|---|
1 |
media |
Media
|
The media (wired, wireless, both) of the interfaces on which the host name should be subscribed to. The default is both wired and wireless media. |
2 |
ip_versions |
IpVersions
|
The IP versions (V4, V6, both) with which the host name should subscribe to. The default value is both IPv4 and IPv6. |
3 |
exclude_local |
bool
|
|
4 |
exclude_local_proxies |
bool
|
ProxyHostPublicationOptions
Defined in fuchsia.net.mdns/proxy_host_publisher.fidl
Options for ProxyHostPublisher.PublishProxyHost
.
Ordinal | Field | Type | Description |
---|---|---|---|
1 |
media |
Media
|
The media (wired, wireless, both) of the interfaces on which the host name should be published. If this value is not supplied, the host name will be published on wired and wireless media. |
2 |
ip_versions |
IpVersions
|
The IP versions (V4, V6, both) of the interfaces on which the host name should be published. If this value is not supplied, the host name will be published on interfaces of both IP versions. |
3 |
perform_probe |
bool
|
Whether a probe for conflicting host names should be performed prior to publishing the host name. If this value is not supplied, probing is performed. |
ServiceInstance
Defined in fuchsia.net.mdns/common.fidl
Describes a service instance.
Ordinal | Field | Type | Description |
---|---|---|---|
1 |
service |
service_name
|
The name of the service. |
2 |
instance |
instance_name
|
The name of the service instance. |
3 |
ipv4_endpoint |
fuchsia.net/Ipv4SocketAddress
|
IPv4 socket address for the service. May be empty. Deprecated: use Deprecated: 9
DEPRECATED |
4 |
ipv6_endpoint |
fuchsia.net/Ipv6SocketAddress
|
IPv6 socket address for the service. May be empty. Deprecated: use Deprecated: 9
DEPRECATED |
5 |
text |
vector<txt_string>:256
|
Text strings describing the instance. Deprecated: use Deprecated: 9
DEPRECATED |
6 |
srv_priority |
uint16
|
The priority of the SRV resource record for this publication. See RFC6763 for details. |
7 |
srv_weight |
uint16
|
The weight of the SRV resource record for this publication. See RFC6763 for details. |
8 |
target |
host_name
|
The domain name of the target host. |
9 |
addresses |
vector<fuchsia.net/SocketAddress>:64
|
The socket addresses for the service instance. Added: 9
|
10 |
text_strings |
vector<txt_character_string>:256
|
Text strings describing the instance. Added: 9
|
ServiceInstancePublication
Defined in fuchsia.net.mdns/service_instance_publisher.fidl
Describes an initial instance announcement or query response. In typical
use, the default SRV priority, SRV weight and TTL values should be used. TTL
values are rounded down to the nearest second. TTL values less than one
second are not permitted and will result in the ServiceInstancePublicationResponder
channel being closed.
Ordinal | Field | Type | Description |
---|---|---|---|
1 |
port |
uint16
|
The port at which the service instance is addressable. This value is required. |
2 |
text |
vector<txt_character_string>:256
|
Text strings describing the instance. If this value is not supplied, no text strings are associated with the instance in this publication. |
3 |
srv_priority |
uint16
|
The priority of the SRV resource record for this publication. See RFC6763 for details. If this value is not supplied, the default SRV priority of 0 is used. |
4 |
srv_weight |
uint16
|
The weight of the SRV resource record for this publication. See RFC6763 for details. If this value is not supplied, the default SRV weight of 0 is used. |
5 |
ptr_ttl |
zx/Duration
|
Time-to-live for PTR resource records. If this value is not supplied, the default PTR TTL of 2 minutes is used. This value is rounded down to the nearest second. |
6 |
srv_ttl |
zx/Duration
|
Time-to-live for SRV resource records. If this value is not supplied, the default SRV TTL of 2 minutes is used. This value is rounded down to the nearest second. |
7 |
txt_ttl |
zx/Duration
|
Time-to-live for TXT resource records. If this value is not supplied, the default TXT TTL of 75 minutes is used. This value is rounded down to the nearest second. |
ServiceInstancePublicationOptions
Defined in fuchsia.net.mdns/service_instance_publisher.fidl
Options for ServiceInstancePublisher.PublishServiceInstance
.
Ordinal | Field | Type | Description |
---|---|---|---|
1 |
media |
Media
|
The media (wired, wireless, both) of the interfaces on which the service instance should
be published. The default |
2 |
ip_versions |
IpVersions
|
The IP versions (V4, V6, both) with which the service instance should
be published. The default |
3 |
perform_probe |
bool
|
Whether a probe for conflicting instances should be performed prior to publishing the instance. If this value is not supplied, probing is performed. |
ServiceInstanceResolutionOptions
Defined in fuchsia.net.mdns/service_instance_resolver.fidl
Options for ServiceInstanceResolver.ResolveServiceInstance
.
Ordinal | Field | Type | Description |
---|---|---|---|
1 |
media |
Media
|
The media (wired, wireless, both) of the interfaces on which the service instance should be resolved. The default is both wired and wireless media. |
2 |
ip_versions |
IpVersions
|
The IP versions (V4, V6, both) with which the service instance should resolved. The default value is both IPv4 and IPv6. |
3 |
exclude_local |
bool
|
Added: 9
|
4 |
exclude_local_proxies |
bool
|
Added: 9
|
ServiceSubscriptionOptions
Defined in fuchsia.net.mdns/service_subscriber.fidl
Options for ServiceSubscriber.SubscribeToService
.
Ordinal | Field | Type | Description |
---|---|---|---|
1 |
media |
Media
|
The media (wired, wireless, both) of the interfaces on which the service should be susbsribed. The default is both wired and wireless media. |
2 |
ip_versions |
IpVersions
|
The IP versions (V4, V6, both) with which the service should subscribed. The default value is both IPv4 and IPv6. |
3 |
exclude_local |
bool
|
|
4 |
exclude_local_proxies |
bool
|
UNIONS
ProxyHostPublisher_PublishProxyHost_Result strict
Defined in fuchsia.net.mdns/proxy_host_publisher.fidl
Ordinal | Variant | Type | Description |
---|---|---|---|
1 |
response |
ProxyHostPublisher_PublishProxyHost_Response
|
|
2 |
err |
PublishProxyHostError
|
Publisher_PublishServiceInstance_Result strict
Defined in fuchsia.net.mdns/mdns.fidl
Ordinal | Variant | Type | Description |
---|---|---|---|
1 |
response |
Publisher_PublishServiceInstance_Response
|
|
2 |
err |
Error
|
ServiceInstancePublicationResponder_OnPublication_Result strict
Defined in fuchsia.net.mdns/service_instance_publisher.fidl
Ordinal | Variant | Type | Description |
---|---|---|---|
1 |
response |
ServiceInstancePublicationResponder_OnPublication_Response
|
|
2 |
err |
OnPublicationError
|
ServiceInstancePublisher_PublishServiceInstance_Result strict
Defined in fuchsia.net.mdns/service_instance_publisher.fidl
Ordinal | Variant | Type | Description |
---|---|---|---|
1 |
response |
ServiceInstancePublisher_PublishServiceInstance_Response
|
|
2 |
err |
PublishServiceInstanceError
|
BITS
IpVersions strict
Type: uint32
Defined in fuchsia.net.mdns/common.fidl
Specifies IP versions on which a service instance should be published.
Name | Value | Description |
---|---|---|
V4 |
1 | Specifies IPv4. |
V6 |
2 | Specifies IPv6. |
Media strict
Type: uint32
Defined in fuchsia.net.mdns/common.fidl
Specifies network media on which a service instance should be published.
Name | Value | Description |
---|---|---|
WIRED |
1 | Specifies wired interfaces. |
WIRELESS |
2 | Specifies wireless interfaces. |
CONSTANTS
Name | Value | Type | Description |
---|---|---|---|
DEFAULT_PTR_TTL |
120000000000
|
int64 |
Deprecated: 9
|
DEFAULT_SRV_PRIORITY |
0
|
uint16 |
Deprecated: 9
|
DEFAULT_SRV_TTL |
120000000000
|
int64 |
Deprecated: 9
|
DEFAULT_SRV_WEIGHT |
0
|
uint16 |
Deprecated: 9
|
DEFAULT_TXT_TTL |
4500000000000
|
int64 |
Deprecated: 9
|
MAX_ADDRESSES |
64
|
uint32 |
|
MAX_SUBTYPES |
256
|
uint32 |
|
MAX_TEXT_STRINGS |
256
|
uint32 |
ALIASES
Name | Value | Description |
---|---|---|
host_name |
string [255 ] |
Identifies a host. Host names consist of one or more labels separated by '.'s. A host name must not end with a '.'. Labels must each be 63 characters or less (not including the separator) and are UTF-8-encoded. A complete host name, including separators, must be 255 characters or less. |
instance_name |
string [63 ] |
Identifies a specific instance of a service being published. Instance names consist of a single label, which is at most 63 characters long and which contains no '.'s. Instance names are UTF-8-encoded. |
service_name |
string [22 ] |
Identifies a (type of) service being published. Service names consist of two labels, both terminated with a '.'. The first label must start with an underscore and be 16 characters or less, including the underscore. The second label must be either '_tcp' or '_udp'. Labels do not contain '.'s. With underscores and terminators, that makes for a maximum of 22 characters. Service names are UTF-8-encoded. |
subtype_name |
string [63 ] |
Identifies a subtype of a service. Subtype names consist of a single label, which is at most 63 characters long and which contains no '.'s. Subtype names are UTF-8-encoded. |
txt_character_string |
vector [255 ] |
Provides description relating to a service instance. In typical use, TXT strings consist of a key and value separated by '='. TXT strings must be at most 255 characters long and are UTF-8-encoded. Added: 9
|
txt_string |
string [255 ] |
Provides description relating to a service instance. In typical use, TXT strings consist of a key and value separated by '='. TXT strings must be at most 255 characters long and are UTF-8-encoded. Deprecated: 9
|