BonjourRegistrationStrategy Class

From RemObjects Wiki
Jump to: navigation, search

This is a Library topic for RemObjects SDK for .NET
This page is generated from external data, please do not update

NamespacesInterfacesClassesEnumsImplements

Contents

Overview

The BonjourRegistrationStrategy class is used internally by the ZeroConfRegistrationEngine. This class, as well as the RORegistrationStrategy class, is used for strategy pattern realization in the ZeroConfRegistrationEngine class. Both BonjourRegistrationStrategy and RORegistrationStrategy are used to retrieve information about the ZeroConf environment and services registered in it.

BonjourRegistrationStrategy class is used when the ZeroConfBrowser.Engine property is set to ZeroConfEngine.Auto or ZeroConfEngine.Bonjour to retrieve information from Apple Bonjour services.

RORegistrationStrategy class is used when the ZeroConfBrowser.Engine property is set to ZeroConfEngine.Auto or ZeroConfEngine.ROZeroConfHub to retrieve information from ROZeroConfHub.

For internal use only.


Location

Implemented interfaces


Instance Methods

constructor

Creates a new instance of the BonjourRegistrationStrategy class and sets its owner, which will be notified when service registration succeeds or fails.


Oxygene:   constructor(owner: ZeroConfRegistrationEngine)
C#:   constructor(ZeroConfRegistrationEngine owner)
VB:   Sub New (owner As ZeroConfRegistrationEngine)


Parameters:

  • owner: Owner of the newly created instance.


RegisterService

Registers the service of the type serviceType in the domain domain with the name serviceName. The strategy instance owner's (set via constructor) methods RegistrationFailed or RegistrationSucceeded will be called after the registration process completes (depending on service response).


Oxygene:   method RegisterService(domain: String; serviceType: String; serviceName: String; port: Int32; txtRecord: array of Byte)
C#:   void RegisterService(String domain, String serviceType, String serviceName, Int32 port, array of Byte txtRecord)
VB:   Sub RegisterService(domain As String, serviceType As String, serviceName As String, port As Int32, txtRecord As array of Byte)


Parameters:

  • domain: Service domain. Only '.local' is supported.
  • serviceType: Service type
  • serviceName: Server name
  • port: Port on which the service is available
  • txtRecord: Additional service information, like channel, message type etc.


Stop

This method cancels all service registrations made via this BonjourRegistrationStrategy instance.


Oxygene:   method Stop
C#:   void Stop()
VB:   Sub Stop


See Also


Product: RemObjects SDK
Available Editions: RemObjects SDK for .NET, Xcode, Delphi, Java and JavaScript

GlossaryArticlesLibrarySamples

Personal tools
Namespaces

Variants
Actions
Navigation
products
platforms
special
Toolbox