-/* $Id$ */
-
/***
This file is part of avahi.
this.address = address;
}
}
-
+
public class AddressResolver : ResolverBase, IDisposable
{
private IntPtr handle;
private ArrayList foundListeners = new ArrayList ();
private ArrayList timeoutListeners = new ArrayList ();
-
+
[DllImport ("avahi-client")]
private static extern IntPtr avahi_address_resolver_new (IntPtr client, int iface, Protocol proto,
IntPtr address, LookupFlags flags,
Stop (false);
}
}
-
+
public event EventHandler Timeout
{
add {
lock (client) {
handle = avahi_address_resolver_new (client.Handle, iface, proto, addrPtr, flags,
cb, IntPtr.Zero);
+
+ if (handle == IntPtr.Zero)
+ client.ThrowError ();
}
-
+
Utility.Free (addrPtr);
}