Platforms to show: All Mac Windows Linux Cross-Platform
Back to DNSServiceDiscoveryRegisterMBS class.
DNSServiceDiscoveryRegisterMBS.Available as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Network | MBS MacOSX Plugin | 5.0 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
If this function returns true, all the needed stuff is installed and the function have been loaded.
DNSServiceDiscoveryRegisterMBS.Close
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Network | MBS MacOSX Plugin | 5.0 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
DNSServiceDiscoveryRegisterMBS.Register(servicename as string, servicetype as string, domain as string, port as Integer, text as string) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Network | MBS MacOSX Plugin | 5.0 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
servicename:
The name of this service instance (e.g. "Steve's Printer")
servicetype:
The service type (e.g. "_printer._tcp."
See RFC 2782 (DNS SRV) and this website:
http://www.iana.org/assignments/port-numbers
domain:
The domain in which to register the service (e.g. "apple.com.")
port:
The local port on which this service is being offered (in network byte order)
text:
Optional protocol-specific additional information
Returns true if successfull.
The ServiceRegistration event may be called till this registration request is closed.
DNSServiceDiscoveryRegisterMBS.Running as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Network | MBS MacOSX Plugin | 5.0 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
DNSServiceDiscoveryRegisterMBS.UpdateText(data as string, ttl as Integer) as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Network | MBS MacOSX Plugin | 5.0 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
data is the TXT Record composed of Pascal Strings.
ttl = time to live.
Returns an error code. (0=success)
Some examples using this method:
The items on this page are in the following plugins: MBS MacOSX Plugin.