Ejemplo n.º 1
0
 public static extern ServiceError DNSServiceBrowse(out ServiceRef sdRef,
                                                    ServiceFlags flags,
                                                    uint interfaceIndex,
                                                    string regtype,
                                                    string domain,
                                                    DNSServiceBrowseReply callBack,
                                                    IntPtr context);
Ejemplo n.º 2
0
 public static extern DNSServiceErrorType DNSServiceBrowse(out IntPtr sdRef,
                                                           DNSServiceFlags flags,
                                                           UInt32 interfaceIndex,
                                                           [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Utf8Marshaler))] String regtype,
                                                           [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Utf8Marshaler))] String domain,
                                                           DNSServiceBrowseReply callBack,
                                                           IntPtr context);
Ejemplo n.º 3
0
        public static ServiceError DNSServiceBrowse(out ServiceRef sdRef,
                                                    ServiceFlags flags,
                                                    uint interfaceIndex,
                                                    string regtype,
                                                    string domain,
                                                    DNSServiceBrowseReply callBack,
                                                    IntPtr context)
        {
            switch (Native.GetCurrentOperatingSystem())
            {
            case OperatingSystem.Windows:
                return(NativeWindows.DNSServiceBrowse(out sdRef, flags, interfaceIndex, regtype, domain, callBack, context));

            case OperatingSystem.OSX:
                return(NativeOSX.DNSServiceBrowse(out sdRef, flags, interfaceIndex, regtype, domain, callBack, context));

            default:
                throw new InvalidOperationException("The current OS is unsupported");
            }
        }
Ejemplo n.º 4
0
 public static extern DnsServiceErrorType DNSServiceBrowse(
     out IntPtr handle, DnsServiceFlags flags,
     int ifIndex, string regType, string domain,
     DNSServiceBrowseReply callback, IntPtr context);
Ejemplo n.º 5
0
 public static extern ServiceError DNSServiceBrowse(out ServiceRef sdRef, ServiceFlags flags,
     uint interfaceIndex, string regtype, string domain, DNSServiceBrowseReply callBack, 
     IntPtr context);
Ejemplo n.º 6
0
 public static extern DnsServiceErrorType DNSServiceBrowse(
     out IntPtr handle, DnsServiceFlags flags,
     int ifIndex, string regType, string domain,
     DNSServiceBrowseReply callback, IntPtr context);