Platforms to show: All Mac Windows Linux Cross-Platform

Back to DNSServiceRegisterMBS class.

DNSServiceRegisterMBS.AddRecord(rrType as Integer, TXTRecord as string, ttl as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Network MBS Network Plugin 8.0 ✅ Yes ✅ Yes ❌ No ✅ Yes All
Add a record to a registered service.

Lasterror is set.

The name of the record will be the same as the registered service's name. The record can later be updated or deregistered by UpdateRecord() or RemoveRecord().

rrtype: The type of the record (e.g. kTypeTXT, kTypeSRV, etc)
data: The raw rdata to be contained in the added resource record.
ttl: The time to live of the resource record, in seconds. Pass 0 to use a default value.

Returns false on any error and true on success. Please check lasterror property when false is returned.

DNSServiceRegisterMBS.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

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Network MBS Network Plugin 5.0 ✅ Yes ✅ Yes ❌ No ✅ Yes All
Register a service that is discovered via Browse() and Resolve() calls.

Flag for specifying renaming behavior on name conflict when registering non-shared records. NoAutorename is only valid if a name is explicitly specified when registering a service (ie the default name is not used.)

kDNSServiceFlagsNoAutoRename= 8,
kDNSServiceFlagsAutoRename= 0 (i.e. bit not set)

You need to keep this object alive (keep a reference in a window, a module or your app class) so you can receive events.

In a perfect application you use DNSServiceDomainEnumerationMBS class to enumerate which domains you should use.
For interface indexes, please also check NetworkInterfaceMBS class.

Returns false on any error and true on success. Please check lasterror property when false is returned.

DNSServiceRegisterMBS.RemoveRecord

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Network MBS Network Plugin 8.0 ✅ Yes ✅ Yes ❌ No ✅ Yes All
Remove a record previously added to a service record set via AddTextRecord.

Returns false on any error and true on success. Please check lasterror property when false is returned.

DNSServiceRegisterMBS.UpdateRecord(TXTRecord as string, ttl as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Network MBS Network Plugin 10.1 ✅ Yes ✅ Yes ❌ No ✅ Yes All
Changes the TXT Record.

data is the TXT Record composed of Pascal Strings.
ttl = time to live.

Returns false on any error and true on success. Please check lasterror property when false is returned.

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


The biggest plugin in space...