X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-sharp%2FAddressResolver.cs;h=c11e97d751f23be7c6630158a78b7ea979267502;hb=4cfd855eb3f148cfad74c562004a723d0a9862b7;hp=3025102c4cce16cf06338203756b9bb5a7d34b90;hpb=9a589e1f5221d1bd995b6c4fa73e3a074d4c2da4;p=catta diff --git a/avahi-sharp/AddressResolver.cs b/avahi-sharp/AddressResolver.cs index 3025102..c11e97d 100644 --- a/avahi-sharp/AddressResolver.cs +++ b/avahi-sharp/AddressResolver.cs @@ -1,5 +1,3 @@ -/* $Id$ */ - /*** This file is part of avahi. @@ -55,7 +53,7 @@ namespace Avahi this.address = address; } } - + public class AddressResolver : ResolverBase, IDisposable { private IntPtr handle; @@ -71,7 +69,7 @@ namespace Avahi 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, @@ -92,7 +90,7 @@ namespace Avahi Stop (false); } } - + public event EventHandler Timeout { add { @@ -155,7 +153,7 @@ namespace Avahi if (handle == IntPtr.Zero) client.ThrowError (); } - + Utility.Free (addrPtr); }