]> git.meshlink.io Git - catta/blobdiff - avahi-sharp/ServiceResolver.cs
fix avahi_netlink_new to allow multiple netlinks per process
[catta] / avahi-sharp / ServiceResolver.cs
index b0f7c089d4eb522f4179b8a565185e91f1ac5b9a..7f8901a177a6beefe0ae7ac5a672bf29c0c421cc 100644 (file)
@@ -1,5 +1,3 @@
-/* $Id$ */
-
 /***
   This file is part of avahi.
 
@@ -51,7 +49,7 @@ namespace Avahi
 
         private ArrayList foundListeners = new ArrayList ();
         private ArrayList timeoutListeners = new ArrayList ();
-        
+
         [DllImport ("avahi-client")]
         private static extern IntPtr avahi_service_resolver_new (IntPtr client, int iface, Protocol proto,
                                                                  byte[] name, byte[] type, byte[] domain,
@@ -82,7 +80,7 @@ namespace Avahi
                 Stop (false);
             }
         }
-        
+
         public event EventHandler Timeout
         {
             add {
@@ -115,7 +113,7 @@ namespace Avahi
                                                                             GetLookupFlags (service.Flags))
         {
         }
-        
+
         public ServiceResolver (Client client, int iface, Protocol proto, string name,
                                 string type, string domain, Protocol aproto, LookupFlags flags)
         {
@@ -184,7 +182,7 @@ namespace Avahi
             info.Address = Utility.PtrToAddress (address);
             info.Port = port;
 
-            if (proto == IPv6)
+            if (proto == Protocol.IPv6)
               info.Address.ScopeId = iface;
 
             ArrayList txtlist = new ArrayList ();