chore: Add some logging to the example
This commit is contained in:
parent
f966af223a
commit
67c0e01516
@ -51,7 +51,9 @@ class MyHomePage extends StatefulWidget {
|
|||||||
|
|
||||||
class _MyHomePageState extends State<MyHomePage> {
|
class _MyHomePageState extends State<MyHomePage> {
|
||||||
Future<void> _query() async {
|
Future<void> _query() async {
|
||||||
|
print("Performing query...");
|
||||||
final results = await MoxdnsPlugin.srvQuery("_xmpps-client._tcp.polynom.me", false);
|
final results = await MoxdnsPlugin.srvQuery("_xmpps-client._tcp.polynom.me", false);
|
||||||
|
print("Done");
|
||||||
for (final r in results) {
|
for (final r in results) {
|
||||||
print("- Target: ${r.target}");
|
print("- Target: ${r.target}");
|
||||||
print(" Port: ${r.port}");
|
print(" Port: ${r.port}");
|
||||||
|
Loading…
Reference in New Issue
Block a user