Platforms to show: All Mac Windows Linux Cross-Platform

DNSServiceRegisterMBS class

Super class: DNSServiceBaseMBS

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class Network MBS Network Plugin 5.0 Yes Yes No Yes No
Function: A class for Apple's implementation of ZeroConfig named Bonjour.
This class allows you to register names on the local network using Bonjour.

This class requires Mac OS X 10.3 or Windows (with installed Bonjour support and the dnssd.dll) to work.
Use DNSServiceDiscoveryBrowseMBS if you want to support Mac OS X 10.2.

common error codes:
kDNSServiceErr_NoError= 0
kDNSServiceErr_Unknown= -65537 (=&hFFFE FFFF)
kDNSServiceErr_NoSuchName= -65538
kDNSServiceErr_NoMemory= -65539
kDNSServiceErr_BadParam= -65540
kDNSServiceErr_BadReference= -65541
kDNSServiceErr_BadState= -65542
kDNSServiceErr_BadFlags= -65543
kDNSServiceErr_Unsupported= -65544
kDNSServiceErr_NotInitialized= -65545
kDNSServiceErr_AlreadyRegistered= -65547
kDNSServiceErr_NameConflict= -65548
kDNSServiceErr_Invalid= -65549
kDNSServiceErr_Incompatible= -65551 (client library incompatible with daemon)
kDNSServiceErr_BadinterfaceIndex= -65552
Subclass of the DNSServiceBaseMBS class.

Feedback, Comments & Corrections

  • event ServiceRegistration(flags as Integer, errorcode as Integer, Name as string, RegType as string, Domain as string)
  • 4 methods
    • method AddRecord(rrType as Integer, TXTRecord as string, ttl as Integer)
    • method Register(Flags as Integer, interfaceIndex as Integer, servicename as string, servicetype as string, domain as string, host as string, port as Integer, txtRecord as string) as boolean
    • method RemoveRecord
    • method UpdateRecord(TXTRecord as string, ttl as Integer)

Super class DNSServiceBaseMBS

This class has no sub classes.

Some examples which use this class:

Blog Entries

The items on this page are in the following plugins: MBS Network Plugin.

DNSServiceQueryRecordMBS   -   DNSServiceRegisterRecordMBS

The biggest plugin in space...

MBS Xojo PDF Plugins