AvahiClient class
A client that connects to Avahi.
Constructors
- AvahiClient({DBusClient? bus})
- Creates a new Avahi client connected to the system D-Bus.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
) → Future< void> - Terminates the connection to the Avahi daemon. If a client remains unclosed, the Dart process may not terminate.
-
connect(
) → Future< void> - Connects to the Avahi daemon.
-
getAlternativeHostName(
String name) → Future< String> -
Gets an alternative hostname for
name
. -
getAlternativeServiceName(
String name) → Future< String> -
Gets an alternative service name for
name
. -
getAPIVersion(
) → Future< int> - Gets the API version.
-
getDomainName(
) → Future< String> - Gets the domain name.
-
getHostName(
) → Future< String> - Gets the hostname.
-
getHostNameFqdn(
) → Future< String> - Gets the hostname in fully qualified domain name form.
-
getNetworkInterfaceIndexByName(
String name) → Future< int> -
Gets the index of the network interface with
name
. -
getNetworkInterfaceNameByIndex(
int index) → Future< String> -
Gets the name of the network interface with
index
. -
getVersionString(
) → Future< String> - Gets the server version.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setHostName(
String hostName) → Future< void> - Sets the hostname.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited